Ah, I didn't know about, thank you.
Though, it's increasingly looking like your suggestion is almost required (if your update/s are network dependant, or you want users to get them at all?, e.g. they're the never-close-chrome type).
So the de facto solution would be to have it included from to first version, no? Since the aforementioned users may never re-launch.
Or if it isn't included, patch the extension with it in a minor update, then update again, with whatever new changes. But now if you have a content_script, all tabs contain stale code/listeners. I feel like I have to be missing something here.
The wording of
onUpdateAvailable is slightly confusing, it makes it seem that adding a listener alone (no callback) can nudge the update installation step -
"If you do nothing, the update will be installed the next time the background page gets unloaded, if you want it to be installed sooner you can explicitly call chrome.runtime.reload()" or is that just default behaviour, with or without a listener?
Also, "If your extension is using a persistent background page, the background page of course never gets unloaded", correct me if I'm wrong, but MV3 Service Workers are unloaded when inactive, meaning paired with the above excerpt, the update installation could occur during a browser session (as opposed to after launch), right?
Another question, are there any events/methods of detection for profile syncs (not installation events, just sync storage updates)?
I'm getting the impression that not a lot of extensions use sync storage, as I can't find anything on it, nor in any docs.
These aren't necessarily directed toward you, Woxxom, just prompted from research after your suggestion (thanks!).