Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Windows Phone project contains empty files

Hi Sam,

We are sorry for such a delay but we're investigating your issue.
We just need to additionally test this.

Thank you for your patience while we are working on it.

Sam6522984
Posts: 0
Joined: Thu Dec 26, 2013 2:35 pm

Windows Phone project contains empty files

Hi Illya,

Thank you for the update, if I can help you somehow, don't hesitate to ask.

Regards
Samuel

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Windows Phone project contains empty files

Dear Samuel,

Please accept our apologies for such a delay.
I've reported this and direct it to our developers, hope they can fix your project quickly.

Sam6522984
Posts: 0
Joined: Thu Dec 26, 2013 2:35 pm

Windows Phone project contains empty files

Hi Illya,

No problem and thank you for the update.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Windows Phone project contains empty files

Dear Samuel,

Could you please describe what should be the expected result after clicking button "Scan Code"?

As we see on this button you have this code:
pre
code
DataCollector.test1();
/*
if (Utility.hasInternetConnection()){
CollectorBarcodeScanner.execute({});
} else {
alert(i18n.t('Error_noInternet'));
}
*/
/code
/pre

and codetest1()/code leads to this code:
pre
code
my.createBonusPlusFolder = function(cb) {
requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {
fs.root.getDirectory("BonusPlus", {
create: true,
exclusive: false
}, cb, fileSystemFail);
}, fileSystemFail);
};/code
/pre

which is creates folder "BonusPlus" in the file system of a device.

Sam6522984
Posts: 0
Joined: Thu Dec 26, 2013 2:35 pm

Windows Phone project contains empty files

Hi Illya,

First I would like to mention, that the first code snippet could have changed in the way, that the DataCollector.test1();-line is commented out and the other part commented in. If that is the case, comment in the DataCollector.test1();-line and comment out the other part. This is for testing the issue.

The second code snippet creates the "BonusPlus" folder. After that the callback "cb" gets started, which in this case is the "prepareLogoDownload"-method:

pre
function prepareLogoDownload() {
var today = new Date();
var lastUpdate = (localStorage.getItem('lastUpdated')) ? new Date(localStorage.getItem('lastUpdated')) : new Date(2013, 1, 1);
if (daysBetween(lastUpdate, today) < DaysToFullUpdate) {
logoPaths = JSON&#46;parse(localStorage&#46;getItem('logoPaths'));
localStorage&#46;setItem(lastUpdate&#46;toISOString());
LogoFilenameService&#46;execute({});
} else {
logoPaths = {};
Utility&#46;deleteAllLogos(function() {
localStorage&#46;setItem('lastUpdated', new Date(2013, 1, 1)&#46;toISOString());
LogoFilenameService&#46;execute({});
});
}
}
/pre

This will start a request to the database and fetch all filenames. Once the response arrived, the download of the logos will start. For that the downloadLogos-method will be called, which will start all logo downloads.

pre
my&#46;downloadLogos = function(filenames) {
logoDownloadError = false;
numberOfLogoDownloads = 0;
numberOfLogos = filenames&#46;length;
requestFileSystem(LocalFileSystem&#46;PERSISTENT, 0, function(fs) {
fs&#46;root&#46;getDirectory("BonusPlus/Logos", {
create: true,
exclusive: false
}, function(entry) {
localStorage&#46;setItem('logoPaths', JSON&#46;stringify(logoPaths));
for (var i = 0; i < filenames&#46;length; i++) {
var url = LogoURL + filenames&#46;Filename;
var path = fs&#46;root&#46;toURL() + "/BonusPlus/Logos/" + filenames&#46;LogoID;
var fileTransfer = new FileTransfer();
fileTransfer&#46;download(url, path, downloadSuccess, downloadError);
}
}, function(evt) {
console&#46;log("FileSystem failure: " + evt&#46;code);
});
}, function(evt) {
console&#46;log("FileSystem failure: " + evt&#46;code);
});
};
/pre

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Windows Phone project contains empty files

Hello!

Thank you for clarification! Sent back to dev team.

Sam6522984
Posts: 0
Joined: Thu Dec 26, 2013 2:35 pm

Windows Phone project contains empty files

Are there any news on this issue? I really would like to update my app in the store, because users can't login currently.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Windows Phone project contains empty files

Hello Sam,

Unfortunately we are still working on it. I pinged our developers team, hope I will get back to you with the update soon.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Windows Phone project contains empty files

Hi Sam -

We've have checked your code and have made changes in event (on the page 'CollectorScreen') like shown on a screen below:
Image

And the barcode scanner window is appearing and we were able to capture the QR code, but we can't figure out the exception code.

Sorry, but it's too much custom JS logic in your app and this is a very time consuming task to find out what's not working and how it should work as expected.

Return to “Issues”