I want to show them a popup with the new features.
Asked
Active
Viewed 851 times
0
-
possible duplicate of [Chrome extension update notification](http://stackoverflow.com/questions/11555051/chrome-extension-update-notification) (answers below are out of date) – Rob W Aug 10 '13 at 08:46
2 Answers
1
Store version
variable in a localStorage
and have local current_version
variable hardcoded into javascript. Then during extension startup (in background.html) compare those two. After that update localStorage variable with the current version.

serg
- 109,619
- 77
- 317
- 330
-
But now when a user first installs the extension, the version update popup will show too. How do you suggest I cope with that? – Orny Feb 06 '11 at 07:51
-
1
-
1
I have submitted an answer and a working code example here chrome extension first run: Detect Chrome extension first run / update
You get the version
from the manifest.json
, you store that into your localStorage
. In your background page, you check if your version
has been set (via undefined) if it isn't set you know that your extension just installed, otherwise if the versions changed, you know it is being updating

Community
- 1
- 1

Mohamed Mansour
- 39,445
- 10
- 116
- 90