Is iOS 5.1 cleaning up localStorage when I close the PhoneGap app in the multitasking panel?

I have an application that saves the readers bookmark placed in localStorage. When I close the application on iOS 5.1, the bookmark is gone, but is it still there on 5.0.1?

+4
source share
2 answers

Unfortunately, in iOS5.1, localstorage is considered temporary data that can be deleted at any time ... But Kerri Shotts wrote code to support NATIVE saving localStorage using phoneGap: http://pastebin.com/5881768B

(he will copy the localstorage file to a protected folder and restore it if necessary)

And the phonegap team is working on this: https://issues.apache.org/jira/browse/CB-330

+5
source

This is a common misconception that closing applications in the multitasking panel actually closes the application. This is not so - the panel simply maintains a list of recent applications.

See this post for a more in-depth discussion.

0
source

Source: https://habr.com/ru/post/1401124/