You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vinu (JIRA)" <ji...@apache.org> on 2015/08/27 16:16:46 UTC
[jira] [Updated] (CB-9564) Localstorage stops working if you change
iOS device date to future date.
[ https://issues.apache.org/jira/browse/CB-9564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinu updated CB-9564:
---------------------
Description:
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
was:
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 change 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
> 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
> Priority: Critical
>
> 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org