Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Storage not persistent using ionic storage

$
0
0

@dennisdh wrote:

I am attempting to utilize the Ionic Storage library to keep track of settings for my app. However, I am having an issue where each time the app is restarted, the storage is wiped. At least, it appears that way.

I’m storing the data:

this.storage.set('language', 'es');

and attempting to retrieve:

this.storage.get('language').then((val) => {
      this.mylang = val;
    }).catch((errorGet: any) => {
      console.error(errorGet);
      return;
    });

Retrieving the data works if I don’t quit the app. But if I quit and re-open, the data is gone. It is using SQLite as far as I can tell (per debug messages in XCode when building & testing there).

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



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