Closed Bug 1013991 Opened 11 years ago Closed 11 years ago

FindMyDevice app should not remove all alarms

Categories

(Firefox OS Graveyard :: FindMyDevice, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: freddy, Unassigned)

References

()

Details

It seems that scheduling another ping to the server tries to remove other pings but actually removes *all* alarms for all apps? I'm not entirely sure this is what's happening but the code reads like that ;) > var request = navigator.mozAlarms.getAll(); > request.onsuccess = function fmd_alarms_get_all() { > this.result.forEach(function(alarm) { > navigator.mozAlarms.remove(alarm.id); > });
Please try to investigate thoroughly before creating a bug - otherwise you are just creating work for other people. From the MDN page on the alarm api: "The MozAlarmsManager.getAll method will return the complete list of alarms currently scheduled by the application. This list is an Array of mozAlarm objects." https://developer.mozilla.org/en-US/docs/WebAPI/Alarm#Managing_alarms
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
oh, sorry. Thanks for catching this.
You need to log in before you can comment on or make changes to this bug.