Sometimes when I install a new version of the app, some values I retrieve are not up to date. The keys contain values from several days before, instead of the most recent values from a few hours before. As a simple example, consider this:
// after initializing the app
const now = Date.now(); // assume the value is 1000000000000
NativeStorage.setItem('lastOpenTime', now);
a few hours later after I open the app again
NativeStorage.getItem('lastOpenTime', value => {
console.log(value === 1000000000000); // true
const now = Date.now(); // assume the value is now 2000000000000
NativeStorage.setItem('lastOpenTime', now);
});
So the idea is that for some reason the value saved for lastOpenTime reverts to 1000000000000 even after it's been updated to 2000000000000. Any idea as to what could be causing this?
Sometimes when I install a new version of the app, some values I retrieve are not up to date. The keys contain values from several days before, instead of the most recent values from a few hours before. As a simple example, consider this:
a few hours later after I open the app again
the next day after I open the app again
So the idea is that for some reason the value saved for
lastOpenTime
reverts to1000000000000
even after it's been updated to2000000000000
. Any idea as to what could be causing this?