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

Closing and reopening pwa resets game #32

Open
HaroldPutman opened this issue Dec 16, 2019 · 1 comment
Open

Closing and reopening pwa resets game #32

HaroldPutman opened this issue Dec 16, 2019 · 1 comment

Comments

@HaroldPutman
Copy link
Owner

Both on iOS and Android if you close and restart the app after installing to home screen, it does not remember the board

@HaroldPutman
Copy link
Owner Author

I am using localStorage to keep the game state. According to this article I should use IndexDB https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa
Need to explore what this involves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant