My extension will run a task every 20 minutes. Basically, my code triggers and then when the function is complete, it creates a new alarm at the end of the code. To do this I’m using the Alarms Javascript API in Firefox.
I seems to work for me, but a couple of my users have complained that after a certain period of time, the alarm will stop triggering or triggers inconsistently.
I’m trying to determine the relability of the Alarms API. Basically, I’m just trying to figure out if there is a bug in my code that stops an alarm from being properly set/triggered or if it’s something to do with the API itself.
Are there any known circumstances in which the Alarm API will fail to be set/triggered?
I have not yet been able to reproduce the issue, but I will be running a long-term test to see if I can get it to happen.
EDIT: The code in question is here, if anyone wants to look to make sure I’m implemented it correctly.