Page 4 of 5

Windows Phone project contains empty files

Posted: Wed Dec 10, 2014 10:32 pm
by Illya Stepanov

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.


Windows Phone project contains empty files

Posted: Thu Dec 11, 2014 7:58 am
by Sam6522984

Hi Illya,

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

Regards
Samuel


Windows Phone project contains empty files

Posted: Thu Jan 08, 2015 2:00 pm
by Illya Stepanov

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.


Windows Phone project contains empty files

Posted: Thu Jan 08, 2015 2:24 pm
by Sam6522984

Hi Illya,

No problem and thank you for the update.


Windows Phone project contains empty files

Posted: Mon Jan 19, 2015 10:22 am
by Illya Stepanov

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.


Windows Phone project contains empty files

Posted: Mon Jan 19, 2015 1:05 pm
by Sam6522984

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


Windows Phone project contains empty files

Posted: Fri Jan 23, 2015 1:33 pm
by Maryna Brodina

Hello!

Thank you for clarification! Sent back to dev team.


Windows Phone project contains empty files

Posted: Fri Jan 30, 2015 9:11 am
by Sam6522984

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


Windows Phone project contains empty files

Posted: Fri Jan 30, 2015 9:43 am
by Evgene Karachevtsev

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.


Windows Phone project contains empty files

Posted: Fri Jan 30, 2015 3:00 pm
by Illya Stepanov

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.