Page 1 of 1

Dindn't apple kill local storage functionality?

Posted: Tue Oct 09, 2012 2:07 am
by magicfrankie

Hi,

I recently tried the local storage tutorial but it didn't work for me.

As far as I know, apple as broken the local storage functionality. Is this correct? Is there a work around apple's change to make local storage work again?

Thanks,

Frank


Dindn't apple kill local storage functionality?

Posted: Tue Oct 09, 2012 3:01 am
by maxkatz

No, browser's local storage should be working in mobile Safari.


Dindn't apple kill local storage functionality?

Posted: Fri Oct 19, 2012 5:02 am
by magicfrankie

Hi,

I just tested my app on my iphone 4 running ios 6 and local storage is definitely broken. The app saves the data entered on screen 1 on desktop safari and desktop chrome browsers but not on ios. Now I'm going to have to use sqlite or something else to save data for my app. Any suggestions would be great to help me do this.

Regards,

Frank


Dindn't apple kill local storage functionality?

Posted: Fri Oct 19, 2012 10:12 am
by Maryna Brodina

Hello! I just created App with this tutorial http://help.gotiggr.com/getting-start... and tested that app on iPhone 4 (iOS 6) - it works. Could you send us your app link (make it publick http://help.gotiggr.com/documentation...)


Dindn't apple kill local storage functionality?

Posted: Fri Oct 19, 2012 12:47 pm
by Eric5020946

it workes for me on:

  • iphone 3GS iOS6
  • iphone 4 iOS6

Dindn't apple kill local storage functionality?

Posted: Mon Oct 22, 2012 11:06 pm
by magicfrankie

Hi,

I reset my to factory defaults, emailed the public link to myself and then ran the app. I entered values in the first screen and clicked 'save'. When I go to the second screen it does show values linked from the first screen. But, when I got back to the first screen, all the fields only show the placeholder text and not the values I entered. Any idea why this is happening for me? How should I be testing my app? Is there a better way? I don't want to release an app without knowing it will definitely work on eveybody's phone. That would be very embarrassing.

Regards,

Frank


Dindn't apple kill local storage functionality?

Posted: Wed Nov 07, 2012 1:58 am
by magicfrankie

Hi,

Just as I thought. Apple DID kill local storage and sql db as follows:


One of the things I have admired about Apple has been their commitment to supporting web standards, or at least interpreting the recommendations intelligently and in the spirit of the W3C’s good intentions.

With the most recent release of iOs, version 5.1 (and in previous beta and developer releases since 5.0) they have purposefully hobbled one of the most useful features in the recent set of recommendations... Localstorage.

In iOS 5.1 Apple have moved the location of localStorage files into a Caches folder which is subject to occasional clean up, at the behest of the OS, typically if space is short. It is likely that Apple have done this to stop localStorage being backed up to iCloud.

Webkit on iOS no longer has persistant localStorage

By moving localStorage to the Caches folder, they have allowed localStorage to be cleaned up whenever iOS wishes.

Persistance is one of the two things that the localStorage recommendation makes explicit, even if by obvious implication....

“User agents should expire data from the local storage areas only for security reasons or when requested to do so by the user.”


Regards,

Frank


Dindn't apple kill local storage functionality?

Posted: Sun Aug 11, 2013 4:34 pm
by bahar.wadia

So how does one workaround this issue ?


Dindn't apple kill local storage functionality?

Posted: Sun Aug 11, 2013 5:12 pm
by maxkatz

Just want other users posted or you can find on the Internet. We, nor anyone else, has control over this.


Dindn't apple kill local storage functionality?

Posted: Sun Aug 11, 2013 8:06 pm
by Illya Stepanov

Just to add -- that the main thread here was iOS 5.1 issues

In iOS 6 - it's working as expected at least you need to understand how it's working
:: https://developer.apple.com/library/s...

Here is a part about "localStorage"
:: https://developer.apple.com/library/s...

Also very useful feature is Developer Tools for Safari on Mac - you can debug your web app right on any iOS device and see if all "localStorage" saved correctly.