cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9564) Localstorage stops working if you change iOS device date to future date.
Date Tue, 20 Jun 2017 22:01:00 GMT

     [ 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:     (was: cordova-ios@4.4.1)
                   cordova-ios@5.0.0

> 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@5.0.0
>
>
> 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.4.14#64029)

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


Mime
View raw message