IraSoro / peri

The period tracker app
https://irasoro.github.io/peri/
34 stars 28 forks source link

Fix problem with user config dissapearance on `ionic` v6.0 #255

Open IraSoro opened 4 months ago

IraSoro commented 4 months ago

Ionic may lost user's config when we upgrade version from ionic 5.0 to ionic 6.0 Looks like that to avoid this behavior we should migrate from localStorage based solution to native ionic's solution based on either ionic/storage or capacitor/storage.

How to reproduce problem:

Expected: All user cycles and other data from storage are loaded on startup

Real: All user cycles and other data from storage are lost

imblowfish commented 4 months ago

Ionic has a special package to store preferences https://capacitorjs.com/docs/v5/apis/preferences