How to keep storage during uninstall / re-install

49 views
Skip to first unread message

wong2

unread,
Jan 16, 2024, 1:56:08 AM1/16/24
to Chromium Extensions
I noticed that both chrome.storage, localStorage and cookies are deleted when you uninstall a Chrome extension.
So if I want to keep some data when user uninstall and re-install my extension, is there any available method?

wOxxOm

unread,
Jan 16, 2024, 5:35:24 AM1/16/24
to Chromium Extensions, wong2
Add a button in your popup or other UI page to export the data as a json (example) and a button to import it.
Reply all
Reply to author
Forward
0 new messages