Reputation: 2610
document.addEventListener('deviceready', function () {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) {
fileSystem.root.getFile("state.json", {}, success, faliure);
});
});
What may cause this problem?
What might be wrong with the above mentioned use-case?
Any help will be appreciated
Upvotes: 3
Views: 947
Reputation: 345
Hey I was experiencing this same issue, but with what I think is a different root cause. I wrote up the solution here:
https://groups.google.com/d/msg/phonegap/skiqf9wQCbY/5UuyCz1cSwAJ
small correction to the above here:
https://groups.google.com/d/msg/phonegap/skiqf9wQCbY/jq5pJbwMFS8J
Just wanted to post here for everyone's benefit.
Upvotes: 1
Reputation: 2610
The above mentioned is a side affect of specifying a section having ~invalid~ js file name, it appears that name resolution is case sensitive for Safari @ iOS ( in contrast to some Desktop browsers ), I have found the following link really helpful in pinpointing this. http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers ( new JScript debugging feature in specific )
Upvotes: 2