Commit 71fa7fde authored by jyasskin@chromium.org's avatar jyasskin@chromium.org

Document the limitations on chrome.alarms timing.

Review URL: https://chromiumcodereview.appspot.com/11761031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175277 0039d316-1c4b-4281-b951-d872f2087c98
parent 0a9d865e
...@@ -21,4 +21,19 @@ ...@@ -21,4 +21,19 @@
<td><strong>Learn more:</strong></td> <td><strong>Learn more:</strong></td>
<td><a href="event_pages.html">Event Pages</a></td> <td><a href="event_pages.html">Event Pages</a></td>
</tr> </tr>
</table> </table>
\ No newline at end of file
<h2 id="frequency-limits">Alarm frequency limits</h2>
<p>In order to reduce the load on the user's machine, Chrome limits
alarms to at most once every 5 minutes but may delay them an arbitrary
amount more. That is, setting
<code>$ref:[alarms.AlarmCreateInfo.delayInMinutes
delayInMinutes]</code> or
<code>$ref:[alarms.AlarmCreateInfo.periodInMinutes
periodInMinutes]</code> to less than <code>5</code> will cause an
error. <code>$ref:[alarms.AlarmCreateInfo.when when]</code> can be
set to less than 5 minutes after "now" but won't actually cause the
alarm to run for at least 5 minutes.</p>
<p>To help you debug your app or extension, when you've loaded it
unpacked, there's no limit to how often the alarm can fire.</p>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment