Reputation: 321
I've searched all over and can't seem to find a concrete answer anywhere nor in the API docs. I ran a test with "developer mode" turned on and then clicking the "update" extensions button and my chrome.storage.local was cleared.
I'm wondering if the extension auto update has the same affect on my users. When I publish a change to the extension will all of their local storage be cleared?
If so, what's the best way to get more persistent client side storage for the extension? I'm really looking to generate a unique ID when the extension is installed and have that ID persist across updates.
Upvotes: 1
Views: 1181
Reputation: 2684
No, it will be persistent between updates.
However, uninstalling an extension will clear the storage, including the sync storage.
Also, you could create a test version of your extension and upload it to the store (invisible for users) and test extension update behavior on it.
Upvotes: 4