Reputation: 982
Do chrome alarms fire if the browser gets closed before the time it was supposed to fire? If it is called, is it called when the browser reopens next?
Upvotes: 5
Views: 565
Reputation: 121
If you set an alarm and close the browser, the alarm will fire immediately when you reopen the browser if the time for the alarm has expired.
If this is not what you want, you can try to put a session id with the alarm and then check on startup if the session id of the alarm matches with the current session, if it does not match then just skip over the code.
Upvotes: 8