[ https://issues.apache.org/jira/browse/CB-12509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886081#comment-15886081 ]
Kerri Shotts commented on CB-12509: ----------------------------------- 1. When you install the new version on your iOS < 10.2 devices, do the paths change, or are you only getting changed paths on iOS 10.2? 2. Are the file paths you listed from the sim or from a real device? The two don't always act identically. If from a sim, please try on a real device. 3. When you copied the files, please specify the order of the operations. I assume you copied to a temp location, then installed, then copied back, but that assumption may be incorrect. 4. Please post a gist of your config.xml files for your prior version and the current version (be sure to remove private / secret information!) Regardless of whether or not you can salvage the data, you should make plans to move away from localStorage as soon as possible. It is not a safe storage location, and can disappear at any time. There is code that tries to mitigate this to some degree in CDVLocalStorage, but there are enough reported cases where it falls down that I wouldn't trust it (and by the time we hear about them, there's not a lot we can do: the issue was invariably on an end-user's device with no logs available for us to work with). Apple has made it clear that localStorage is not persistent long-term, and so you will need to find an alternative for guaranteed persistence. This probably isn't something you'll be able to do overnight, so I would start working on that for your next release. > LocalStorage not persistent when app is updated (cordova ios 3.8.0 -> 4.1.1) > in iOS 10.2 > ---------------------------------------------------------------------------------------- > > Key: CB-12509 > URL: https://issues.apache.org/jira/browse/CB-12509 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 4.1.1 > Reporter: Sachitra Malwatte > Labels: iOS, iOS10.2 > > I have a app built with cordova ios 3.8.0. > When I updated the app to new version which is built with 4.1.1 LocalStorage > returns empty. I cannot retrieve the data saved by previous version. > Works in iOS 8 and 9 > Does not work in iOS 10.2 > Please help. > Cordova-ios: current 4.1.1, previous 3.8.0 > Cordova CLI: current 6.1.1 > xcode: current 7.2.1 -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org