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

RequestFileSystem dies silently on iOS

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

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

RequestFileSystem dies silently on iOS

Hello Sam,

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

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

RequestFileSystem dies silently on iOS

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.

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

RequestFileSystem dies silently on iOS

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.

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

RequestFileSystem dies silently on iOS

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.

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

RequestFileSystem dies silently on iOS

Do you maybe have a workaround for this problem?

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

RequestFileSystem dies silently on iOS

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.

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

RequestFileSystem dies silently on iOS

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

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

RequestFileSystem dies silently on iOS

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...

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

RequestFileSystem dies silently on iOS

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

Return to “Issues”