Manak Kapoor
Manak Kapoor

Reputation: 982

Are chrome alarms fired if the browser is closed?

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

Answers (1)

Chikara Orval
Chikara Orval

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

Related Questions