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
Post a Comment