Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IraSoro opened this issue Jul 18, 2024 · 1 comment
Open

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

IraSoro opened this issue Jul 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@IraSoro
Copy link
Owner

IraSoro commented Jul 18, 2024

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:

  • Install version with old packages, mark some date or do anything to fill storage with data
  • Upgrade packages (to do this you can cherry-pick commits from this branch Fixed Download latest release button #243)
  • Install new version with new packages

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

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

@IraSoro IraSoro added the bug Something isn't working label Jul 18, 2024
@imblowfish imblowfish changed the title Fix problem with user config dissapearance on the ionic v6.0 Fix problem with user config dissapearance on ionic v6.0 Jul 18, 2024
@imblowfish
Copy link
Collaborator

imblowfish commented Jul 18, 2024

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

@IraSoro IraSoro added this to the v2.5.0 milestone Aug 14, 2024
@IraSoro IraSoro modified the milestones: v2.5.0, v2.5.1 Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants