I have a simple Chrome extension that uses chrome.storage.sync to store a list of tasks.
The following command in the console would clear all sync data for the extension:
chrome.storage.sync.clear()
If my users are having trouble with syncing, can I simply instruct them to uninstall the extension and install it again to have the same effect as that command?
When extensions are installed into Chrome they are extracted into the C:\Users\[login_name]\AppData\Local\Google\Chrome\User Data\Default\Extensions folder. Each extension will be stored in its own folder named after the ID of the extension.
One way to share data between a background script and the other scripts that make up the extension is to save the data to a location which is accessible to all the scripts in the extension. We can use the browser localStorage API or chrome. storage which is specific to Chrome extensions.
Google Chrome lets you sync your bookmarks and extensions so you don't have to add or transfer them to your other computers.
It's one of those questions where the answer is "why don't you try it?"
I have a test extension published in Chrome Web Store for storage.sync
testing. I can confirm that uninstalling it with Chrome Sync enabled nukes the storage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With