IraSoro / peri

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

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

Open IraSoro opened 1 month ago

IraSoro commented 1 month 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 1 month ago

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