An API to detect if a Chrome Extension has updated
In this post, I address the question of how to detect Chrome Extension updates. While there isn't a single API call for this, we can achieve it using the Management API's onInstalled
event, which fires upon both installation and updates. By maintaining a record of installed extensions and their versions, we can compare the version in the onInstalled
callback with our existing record, identify updates, and notify the user when an update occurs.