Confirmed users
110
edits
m (→Examples) |
(→FAQ) |
||
| Line 92: | Line 92: | ||
"messages": ["alarm"] | "messages": ["alarm"] | ||
* I've already added a <code>messages</code> property for registering the <code>"alarm"</code> message and set the system message handler for handling that. Why can't I receive that when the alarm goes off? | |||
** Note that the Alarm API works in such a way that it only delivers the <code>"alarm"</code> message to the page that called the <code>add(...)</code>. For example, if you call <code>add(...)</code> from path_1/index.html but set a system message handler for path_2/index.html, this can't work for now. | |||
* Does the <code>getAll(...)</code> return the alarms that were not added by its belonging application? For example, if the Alarm Clock app calls the <code>getAll(...)</code>, will the alarms added by the Calendar app also be returned? | * Does the <code>getAll(...)</code> return the alarms that were not added by its belonging application? For example, if the Alarm Clock app calls the <code>getAll(...)</code>, will the alarms added by the Calendar app also be returned? | ||