RuntimeLimits And Quotas

Limits And Quotas

Every size, count and rate limit your app runs into, in one table.

Each limit below is enforced by the host or by the submit checks, so your app can rely on it. A limit that is reached is reported in a defined way: look at the last column.

The Limits

WhatLimitWhen it is reached
App bundle2 MB, one index.htmlThe submit check fails.
One bridge message64 KBThe call fails with -32700.
Bridge request rate30 requests in 10 seconds, per appThe call fails with 4290.
Storage key1 to 128 characters: letters, digits and . _ : -The call fails with -32602.
One stored value65,536 charactersThe call fails with -32602.
All of an app's storageAbout 256 KB of textstorage.set returns ok: false with reason: "quota".
Text for share.open and clipboard.write16,384 charactersThe call fails with -32602.
Scopes in one permissions.request1 to 10, no duplicatesThe call fails with -32602.
actions.checkIn fieldsactionId and roomId 128 characters, title 120, summary 280, score 0 to 1,000,000The value is cut or clamped to fit.
Message idA string up to 64 characters, or a finite numberThe call fails with -32600.

Designing Around Them

  • Save in one value, not many. Keep your state as one JSON object under one key. It is one call, and it cannot be half written.
  • Save on change, not on a timer. Thirty calls in ten seconds is plenty for a person tapping, and too few for a loop.
  • Treat a full quota as normal. Show a message and drop the oldest history first.
  • Stay small. A starter app is 40 to 160 KB. 2 MB is a ceiling, not a target.

See also Error Codes and Automatic Checks.

Ready To Build Or Ship?

Check your files, preview on an iPhone frame, and submit in the Developer Studio.