Does iOS 5.1 clear the localStorage when I close a PhoneGap app in the multitasking bar?

匿名 (未验证) 提交于 2019-12-03 03:03:02

问题:

回答1:

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

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

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



回答2:

It's a widely published misconception that closing apps on the 'multitasking bar' actually closes the application. It does no such thing - the bar simply maintains a list of recent apps.

See this post for a more in-depth discussion.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!