1

我已经阅读了一些 关于从 iOS 5.1 中的嵌入式 UIWebViews 创建的 Web SQL 数据库的持久性下降的描述,但我无法确定在普通的旧 Mobile Safari 中访问的 Web 应用程序是否也存在此问题。有谁知道我是否应该期望使用 Mobile Safari 访问的 Web 应用程序具有较低级别的数据持久性?

4

1 回答 1

0

Although I'm still not completely sure that web apps accessed with Mobile Safari are immune to this issue, the following fix for this issue in the iOS 6.0 Release Notes seems to imploy that the problem was specific to native apps with embedded UIWebViews:

In iOS 6 and later, web data (SQL Web Storage and LocalStorage) from a UIWebView object can be stored in a directory that will be backed up. To enable backing up this data, set the WebKitStoreWebDataForBackup key to YES in your app’s user defaults. This should be done only if your app relies on web content data that cannot be reloaded. If your UIWebView object opens links to arbitrary web content, this key should be set to NO. Toggling the value of this key will not preserve existing web view data.

于 2012-11-25T18:22:02.177 回答