After a lot of time researching and trying to fix this. Still happening…
I have added cordova plugin cordova-sqlite-storage. and set sqlite as first driver order:
IonicStorageModule.forRoot({
name: '__spaddb',
driverOrder: ['sqlite','indexeddb', 'websql']
}),
I also wait storage.ready():
async loadUser() {
try {
await this._storage.ready();
this.user = await this._storage.get('user');
} catch (error) {
console.log(error)
}
}
I don’t know how to continue…
1 post - 1 participant