iPhone localStorage的生命周期 - 它生存的应用程序更新吗? [英] iPhone localstorage lifecycle - does it survive an app-update?

查看:877
本文介绍了iPhone localStorage的生命周期 - 它生存的应用程序更新吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发使用的PhoneGap和HTML5的iPhone应用程序。我使用localStorage的在游戏的成就进行保存。

I'm currently developing an iPhone App that uses Phonegap and HTML5. I use localstorage to save in-game-achievements.

我不知道会发生什么,使用者将来自AppStore的该应用程序的更新。是localStorage的数据持久化?还是我要切换到SQLite,它实际上是由W3C抛弃。

I was wondering what would happen the user pulls an update for that app from the AppStore. Is the localstorage data persistent? Or do I have to switch to SQLite, which is actually abandoned by the W3C..

任何经验将是AP preciated。

Any experience would be appreciated.

推荐答案

是您的localStorage是怎么回事,直到应用程序被删除,留下来。

Yes your localStorage is going to stick around until the app is deleted.

通过建立你设置一些项目的localStorage一个基本的应用程序试一下,然后重新编译和更新与变化,你的应用程序会的localStorage留在哪里。

Try it out by building a basic app that you set some localStorage items, then recompile and update the app with changes your localStorage will stay where it is.

SQLLite会的工作,但你可以存储相当多的信息在localStorage的,实现几乎相同的结果。

SQLLite will work, but you can store quite a bit of information in localStorage and achieve nearly the same results.

我使用localStorage的若干项目和它的伟大工程!

I use localStorage in a number of projects and it works great!

。希望回答你的问题。

这篇关于iPhone localStorage的生命周期 - 它生存的应用程序更新吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆