Page 1 of 4

RequestFileSystem dies silently on iOS

Posted: Thu Sep 18, 2014 2:32 pm
by Sam6522984

Hi there,

I have a problem with the filesystem, the requestFileSystem-method dies silently everytime I call it. The same code runs fine on Android.
I started to debug the app in xcode, the javascript file seems fine, also the native code seems to work, because I get the correct results. But when the callback from the native code is called, nothing happens in the javascript part of the app.
Other plugins work just fine and I can see the callbacks reach the javascripts.

I added a requestfilesystem call to the device ready event of my start screen:

console.log('try to get filesystem');
requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {
console.log('got filesystem');
}, function(err) {
console.log('filesystem failed');
});

The first log-message gets printed.
Also I have added a log-message to the requestfilesystem.js at the beginning which also gets printed.
In the CDVCommandDelegateImpl.m I have added some breakpoints, there I get the result from the file plugin and everything seems fine.
But after the call of the performSelectorOnMainThread nothing reaches the javascript callback methods (I have added some logs which don't get printed).

I hope you can help me on this subject, because we would like to publish an update to our apps already in the store.

Thank you for your time and kind regards
Sam


RequestFileSystem dies silently on iOS

Posted: Thu Sep 18, 2014 3:56 pm
by Evgene Karachevtsev

Hello Sam,

Could you please clarify, what library version do you use?


RequestFileSystem dies silently on iOS

Posted: Fri Sep 19, 2014 8:35 am
by Sam6522984

Hi Evgene

I'm not sure, where I can find the version of the file-plugin, or did you meant another library?

Besides that I use PhoneGap 3.3.0, jQuery 1.9.1 and jQuery Mobile 1.4.2

I tested it on an iPhone 4s and in the iPhone simulator from XCode.


RequestFileSystem dies silently on iOS

Posted: Fri Sep 19, 2014 5:11 pm
by Evgene Karachevtsev

Sam,

Yes, this is what we had in mind. You have library version 2.0.
We'll test it, but it can take some time.


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 9:18 am
by Sam6522984

Hi Evgene

Thank you for the update. I forogt to mention, that the app works in the Appery Tester on iOS. I also tried the filesystem in a new app, which worked.


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 9:19 am
by Sam6522984

Do you maybe have a workaround for this problem?


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 9:33 am
by Evgene Karachevtsev

Hello Sam,

Unfortunately we are still working on your issue. I will get back to you with update when have more information from our development team.


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 12:09 pm
by Sam6522984

Should I wait with the upgrade to the new app builder?


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 12:13 pm
by Evgene Karachevtsev

Sam,

You may try you project in new version of builder and then return to old version if you want: http://devcenter.appery.io/documentat...


RequestFileSystem dies silently on iOS

Posted: Mon Sep 22, 2014 12:22 pm
by Sam6522984

I'll try to upgrade the app, maybe the bug gets fixed, I'll update here.