[ https://issues.apache.org/jira/browse/CB-9564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-9564: --------------------------------- Priority: Major (was: Critical) > Localstorage stops working if you change iOS device date to future date. > ------------------------------------------------------------------------ > > Key: CB-9564 > URL: https://issues.apache.org/jira/browse/CB-9564 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 3.9.0 > Reporter: Vinu > > Hello, > I am using Cordova iOS v3.9 > Issue: > Localstorage stops working if you change iOS device date to future date and > then change it back to current date. > Only applies to iOS. > Steps to recreate: > 1. Change date on your iOS device to say 2 months ahead then start Phonegap > app. > 2. Then close app and change date back to current date, then start app. > In config.xml > <preference name="BackupWebStorage" value="local"/> > What I found was Localstorage is restored from backup at this stage but I > can't store changes to it unless I set date back to 2 months ahead. > When I restore date to current date, debug log shows "invalid callback Id > received by sendPluginResult". > Conclusion: > If a user by accident changed a date to future date and then changed it back > to current date, localstorage stops working. > Note: > If I set shouldRestore to return false in CDVLocalStorage.m file, line 484, > it works as expected when date changed but obviously restore doesn't work. > Thank you, > V -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org