I am trying to detect whether my extension was uninstalled.
I can't use chrome.management.onUninstalled
because it will be fired on other extension.
Google Chrome, unlike Firefox, doesn’t allow to detect when the user uninstalls the extension, which is quite useful to understand user behaviour. There is a feature request on crbug.com with a discussion of this feature but it has not been implemented yet.