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

Reinstalling the extension loses shared storage #241

Open
maxpatiiuk opened this issue Apr 15, 2024 · 1 comment
Open

Reinstalling the extension loses shared storage #241

maxpatiiuk opened this issue Apr 15, 2024 · 1 comment
Assignees

Comments

@maxpatiiuk
Copy link
Owner

  1. Uninstall extension
  2. Install again
  3. All configured settings are lost

Happened to me several times as I was re-installing the extension to force chrome to install the latest version.

Pretty sure this is fault (or intended behavior) of the chrome storage API, so I might need to look for workarounds:

  • Is data both from sync and local storage affected? if only from one area, then should I sync data between both areas?
  • Can I listen for extension uninstall and open a page that contains a link to download the extension data (so that it can be re-imported on the next install)
@maxpatiiuk
Copy link
Owner Author

Seems like the local storage data is also removed on uninstall.

There is a way to open a URL on uninstall, however, it is too late as the background script is already removed by that point

Google really needs to improve this as some people are losing valuable data.

Until then, I have a few options:

  • add an option to sync data with google drive, github or some other external storage. As far as google drive, need to make sure to implement it better than tampermonkey did, as I had issues with them opening the google sign in page on each chrome start, or failing to sync the data when prompted to. Github would be easier as I am more familiar with it from my work on text-hoarder, but also fewer people would have a github account and the knowledge of how to create a repository (and restore data from it)
  • add a warning message in settings that "all extension data is lost on extension uninstall/reinstall, so make sure to back-up your settings using these shiny buttons regularly". Doesn't fit neatly into my UI right now, but I will keep this in mind

Given that this is largely Google's fault, I am reducing the priority on this for now

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

No branches or pull requests

1 participant