Hello,
I’m trying to understand what can be reason. I’m using local storage persistent value for user ID in Ionic2 app:
set() {
var val = this.user_id;
this.storage.set('myData', val);
}
I have 6 Android device. Value from local storage was user ID taken from val
with all listed devices, except LG which not was tested before problem:
this.storage.get('myData').then((val) => {
this.user = val;
});
All this time it was:
1. Motorola motoe4 | val = 129299383782734664
2. Motorola motoe4plus | val = 129299383782734664
3. Asus | val = 129299383782734664
4. Samsung | val = 129299383782734664
5. Samsung (old model) | val = 129299383782734664
Now I got second result:
1. Motorola motoe4 | val = 129299383782734664
2. Motorola motoe4plus | val = 129299383782734664
3. Asus | val = 129299383782734664
4. Samsung | val = null
5. Samsung (old model) | val = 129299383782734664
6. LG | val = null
Seems like local storage does not works on 4. Samsung
and 6. LG
, value is null
. Not sure if it can be reason, but Samsung
display was replaced, this coincides with the time when result was proper, and then with null
after display repairing, but what then with LG, I lent this phone for testing, also does not stores value in local storage, equal to null
. Maybe it is something wrong with SQLite
on this devices
Advice would be helpful