Cannot use chrome.runtime.restart() call or onUpdateAvailable event |
|||||
Issue descriptionChrome Version: (copy from chrome://version) OS: (e.g. Win7, OSX 10.9.5, etc...) What steps will reproduce the problem? (1) Create and publish kiosk app with a chrome.runtime.restart() call trigged by an onUpdateAvailable event. (2) Start a kiosk in the OU. (3) Observe behavior. What is the expected result? When a new version of the app appears in the CWS, the app should restart, booting into the new app. What happens instead? The app does not restart. I've actually tried these features independently to confirm that both do not work. I added a restart call to a function that runs in response to the onUpdateAvailable event, but it never updated the app, so I changed it to simply log a message to console the confirm that the event was happening. The event never happened, despite my pushing new versions to the CWS and waiting for publication, so instead I created a button in my app that calls chrome.runtime.restart directly, and as far as I can tell the API doesn't do anything. I will add some logs for you using the process detailed here: https://support.google.com/chrome/a/answer/3293821?hl=en But let me know if that's not the correct process.
,
Jun 5 2017
Toni, can you please take a look?
,
Jun 6 2017
,
Jun 6 2017
,
Jul 13 2017
,
Dec 1 2017
Is there any update on this? We'd love to use the restart API with our app. Could it be that we need to enable an app permission that we haven't enabled? Is anyone known to be using this API successfully?
,
Jan 17 2018
As an update, I was recently able to use this API after further testing. It is possible that this is no longer a bug, but whether that is because something in the API changed, or I corrected an error of mine, I can't be certain. Feel free to mark this Fixed or WontFix, depending on the circumstances. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by edholden@google.com
, Jun 5 2017