Jump to content

HTML5 localstorage works on one iPhone iOS 5.0.1, but not the other?


Recommended Posts

I've created a web app for iPhone in full screen mode. Since it resets the url each time I re-open the app, I store the last url each time in localstorage. On the next load of the app, it reads this from localstorage.

 

This works perfectly on my iPhone. When I try exactly the same page on an iPod Touch which is just factory reset, it doesn't work. It doesn't store anything. Both have iOS 5.0.1 (9A405).

My friend tried it, and on his iPhone it doesn't work, but on his iPad it does. All 5.0.1. Also on my iPad, it doesn't work.

 

Here's another page that uses localstorage, which works on my iPhone, but not on my iPod: http://www.guitarunleashed.com/m/

Open it on your iDevice, search for a song, click it, add to favorites. Now you'll see the song again, if it was saved to localstorage.

 

So my question is, is there a setting to enable/disable localstorage, and why doesn't it work by default on a newly installed iDevice?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.