This looks like it's begging for promises.  Specifically, it seems weird that we call _notifySyncDone when we've just added the alarm.  Makes sense when you know why, but weird in a literal code reading.