How do I check if a Google Chrome Extension needs to be updated? -


i know extensions hosted on webstore, when push updates google automatically update extensions of users there lag (couple of hours).

is there way extension detect if there new update hasn't been applied? easiest way somehow query current version on webstore , compare installed version , wondering if there in api this.

i know chrome.app.getdetails().version gives me current installed version there way current web store version? thanks.

in worst case, issue http extensions web store page , extract version out there seems super hacky i'd prefer not way.

you missed it, it's in chrome.runtime api:

chrome.runtime.requestupdatecheck(function callback)

requests update check app/extension.

do note server may throttle requests. supposed check response in callback , reduce request frequency if happens.

if want more proactive that, implement push notifications update check. that's overkill, though - considering web store runs automated checks on updates can last hour anyway after publish.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -