@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