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.
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.
Hi Illya,
Thank you for the update, if I can help you somehow, don't hesitate to ask.
Regards
Samuel
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.
Hi Illya,
No problem and thank you for the update.
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.
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.parse(localStorage.getItem('logoPaths'));
localStorage.setItem(lastUpdate.toISOString());
LogoFilenameService.execute({});
} else {
logoPaths = {};
Utility.deleteAllLogos(function() {
localStorage.setItem('lastUpdated', new Date(2013, 1, 1).toISOString());
LogoFilenameService.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.downloadLogos = function(filenames) {
logoDownloadError = false;
numberOfLogoDownloads = 0;
numberOfLogos = filenames.length;
requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {
fs.root.getDirectory("BonusPlus/Logos", {
create: true,
exclusive: false
}, function(entry) {
localStorage.setItem('logoPaths', JSON.stringify(logoPaths));
for (var i = 0; i < filenames.length; i++) {
var url = LogoURL + filenames.Filename;
var path = fs.root.toURL() + "/BonusPlus/Logos/" + filenames.LogoID;
var fileTransfer = new FileTransfer();
fileTransfer.download(url, path, downloadSuccess, downloadError);
}
}, function(evt) {
console.log("FileSystem failure: " + evt.code);
});
}, function(evt) {
console.log("FileSystem failure: " + evt.code);
});
};
/pre
Hello!
Thank you for clarification! Sent back to dev team.
Are there any news on this issue? I really would like to update my app in the store, because users can't login currently.
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.
Hi Sam -
We've have checked your code and have made changes in event (on the page 'CollectorScreen') like shown on a screen below:
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.