When i'm trying in my extension to detect install or update event, nothing happens.
I'm doing like this:
// Check whether new version is installed
chrome.runtime.onInstalled.addListener(function(details){
if(details.reason == "install"){
console.log("This is a first install!");
}else if(details.reason == "update"){
var thisVersion = chrome.runtime.getManifest().version;
console.log("Updated from " + details.previousVersion + " to " + thisVersion +" + !");
}
});
But i didn't see any console.log messages in my background page.
I'm tried to reloading page with extensions when extension is installed (update action trigger?), installing packaged crx, nothing works.
Chrome Version 25.0.1364.160 m
Maybe, i need to set up some permissions? How can i see, that this event is fired?