- This topic has 17 replies, 4 voices, and was last updated 12 years, 2 months ago by dabbelju.
-
AuthorPosts
-
Unknown AuthorParticipantI am working on an app that relies on persistant localStorage. I did a build last night and tested it this morning for persistance (turned iPhone on and off, deleted the app from the quick-launch area) and, to my surprise, the data I stored was still there!
Is Mobione now using a version of phonegap that incorporates the localStorage fix?
-1TC
Unknown AuthorParticipantI upgraded yesterday to iOS 5.1.1. Could it be that Apple actually listened to people and fixed the issue themselves…?
What are you all hearing?
-1TC
dabbeljuMemberHi all,
any update on this topic? I just did run into the same problem. (iOS 5.1.1).
Thanks
dabbelju
Unknown AuthorParticipantI think they fixed it. My app which uses localstorage works just fine under 5.1.1.
-1TC
dabbeljuMemberHi 1thinchip,
that is good news. But for it does not work. Do I need to enable offline support or do you have an idea what I am doing wrong?
When I start the app handling of local storaga works fine. When I close and resume it it is fine. Only if I kill the app and restart it, all local storage stuff isto be gone.
Do I need to initiated the local storage somehow? Or do I need to deal with local storage through phonegap?
Could you perhaps share your example so that I can take a look how you did it?
Thanks
dabbelju
dabbeljuMemberHi 1thinchip, Hi all,
I wrote a little test app to reproduce the problem, please find it attached. I do not doubt that 1thinchip has it working, but it does not work for me.
In Testcenter everything is fine. The app as native iOS app does not have the localstorage persistent.
When you start the app press set. This will set in local storage a key test with value test. Load will show it in the text area. Clear screen clears the text area.
As long as the app is started once and not killed, I can access the local storage fine. When I kill the app, start it and press just load, what should get me the key test from local storage it is not working.
iOS is 5.1.1
Any help would be highly appreciated.
Thanks a lot in advance.
best regards
dabbeljuAttachments:
You must be logged in to view attached files.
dabbeljuMemberHi all,
Just another information. I did try it on iPad (iOS 5.1.1) and there ist works.
Thanks and best
Dabbelju
Unknown AuthorParticipantThe problem is not your code. The code works. Localstorage works.
I did the following:
1. Compiled it under Mobione 2.1.1 as a native iOS app.
2. Downloaded it to my iPhone 4S (iOS 5.1.1)
3. Ran it
4. Pressed “Set” once
5. Pressed “Load” once. “test” was displayed.
6. Pressed “Clear” once.
7. Pressed the iPhone homescreen button once to get out of the app.
8. Pressed the iPhone homescreen button twice to bring up a list of recently-used apps.
7. Held my thumb over your app’s icon to bring up the option to delete it (clear it from memory). It cleared from the recently used apps.
8. I pressed the homescreen button again to return to the homescreen. I launched your app again. The splash page appeared again as your app was loaded.
9. I pressed “Load” once. “test” was displayed. It was still there in localstorage from before.There is no problem with your code or with localstorage. Please make sure that your Mobione installation is up to date and that your phone really does have the latest updates.
-1TC
PS – Your spashscreen has the wrong dimensions.
KaleMemberWhat happens when you start the app, store some information, close the app (stop task), make an update to the app (e.g. v1.0 to v1.1), start the app. Is the information still there?
Can´t test it at the moment.
Kale
dabbeljuMemberHi 1thinchip,
first of all thanks for your help. this is very interesting. I do agree that the code is not the problem, cuase on my iPad it is working. Both are on iOS 5.1.1 and I am definitely using the latest MobiOne (2.1.1).
Did you compile the ipda with a dev profile or did you use a distribution certificate? If I can run it could you send me the ipa so that I can try to install it?
@octavio, wayne: Did you see this perhaps before? What else can i update on the devices than having iOS 5.1.1 on it? What else could the problem cause?
@kale: I will try what you said tomorrow.Thanks and best
dabbelju
SonamGyatoMemberIs the localstorage and local database deletion by ios
fixed in ios 5.1.1.i.e. webapps – not native apps.
Unknown AuthorParticipantYES!! It is fixed!!
I used my own iOS certificates. You cannot compile an iOS app with a dev profile using Mobione. That’s an Android thing. Whatever the problem is, it’s on your side. There is no longer an issue w/ Mobione or with localstorage.
This is my last post on the issue. It works now. It didn ‘t work then. It works now.
If you want to see a working app, go buy the “My Comic Books” app on the App Store and Google Play.
-1TC
dabbeljuMemberHi all,
sorry if I explained it wrong. Of course I have been talking about certificates and not profiles. It was late at night, when I wrote the post.
Thanks for your support 1thinchip. I do agree that this is a strange one and there is nothing more you can do and that there is a problem on my end. But I think this is a case, which could be investigated by support if of interest, because if it happens to me, it will happen to others.
I did try it on the following devices (all on iOS 5.1.1):
iPhone 3Gs => not working
iPhone 4 => not working
iPhone 4s => working
iPda => workingI did download your APP and tried it on my iPhone 3Gs and it is working. So I would say, that my device is also ok.
Thanks a lot and best regards
dabbelju
Unknown AuthorParticipantThank you for your purchase 🙂 Good luck in diagnosing your issue.
-1TC
SonamGyatoMemberI repeat…
This is issue fixed in webapps.
My understanding is ios 5.1.1
and on certain hardware only – true?
I don’t understand the relevancy of certificates and profiles.
-
AuthorPosts