Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Ionic v5 @ionic/storage 2.2.0 localStorage beign erased on iOS after some time

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>