[ 
https://issues.apache.org/jira/browse/CB-9564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-9564:
---------------------------------
    Fix Version/s: cordova-ios@4.4.1

> 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: cordova-ios
>    Affects Versions: 3.9.0
>            Reporter: Vinu
>            Priority: Minor
>             Fix For: cordova-ios@4.4.1
>
>
> 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.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to