LocalStorage or SQLite data no longer backup for apps made with UIWebView
| Originator: | samuel.michelot | ||
| Number: | rdar://10680371 | Date Originated: | 11-Jan-2012 07:57 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 5.3 beta |
| Classification: | Reproducible: | always |
Summary: WebKit data (localstorage or local SQLite) are now stored in Library/Caches folder (instead of Library/WebKit folder). This is a big problem for all apps using UIWebView and storing user data, because they will no longer be backup and may be deleted. There are a lot HTML5 apps (cf. phonegap) using localstorage or SQLite as a critical feature. Steps to Reproduce: In a UIWebView, create a new DB or use localStorage with JavaScript. You can see that the WebKit data is now stored in Library/Caches : http://cl.ly/1p3L1U2W1J3y3I1T1r3y Expected Results: We should at least specify the directory of WebKit data (and to set it to Documents/ for critical data) Actual Results: The WebKit data are stored in Library/Caches folder, and can be deleted Regression: The WebKit data was stored in Library/WebKit folder, and was correctly backup by iCloud
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!