magicfrankie
Posts: 0
Joined: Tue Oct 09, 2012 2:07 am

Dindn't apple kill local storage functionality?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dindn't apple kill local storage functionality?

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

magicfrankie
Posts: 0
Joined: Tue Oct 09, 2012 2:07 am

Dindn't apple kill local storage functionality?

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Dindn't apple kill local storage functionality?

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

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

Dindn't apple kill local storage functionality?

it workes for me on:

  • iphone 3GS iOS6
  • iphone 4 iOS6
magicfrankie
Posts: 0
Joined: Tue Oct 09, 2012 2:07 am

Dindn't apple kill local storage functionality?

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

magicfrankie
Posts: 0
Joined: Tue Oct 09, 2012 2:07 am

Dindn't apple kill local storage functionality?

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

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Dindn't apple kill local storage functionality?

So how does one workaround this issue ?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Dindn't apple kill local storage functionality?

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Dindn't apple kill local storage functionality?

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.

Return to “Issues”