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
| What | Limit | When it is reached |
|---|---|---|
| App bundle | 2 MB, one index.html | The submit check fails. |
| One bridge message | 64 KB | The call fails with -32700. |
| Bridge request rate | 30 requests in 10 seconds, per app | The call fails with 4290. |
| Storage key | 1 to 128 characters: letters, digits and . _ : - | The call fails with -32602. |
| One stored value | 65,536 characters | The call fails with -32602. |
| All of an app's storage | About 256 KB of text | storage.set returns ok: false with reason: "quota". |
Text for share.open and clipboard.write | 16,384 characters | The call fails with -32602. |
Scopes in one permissions.request | 1 to 10, no duplicates | The call fails with -32602. |
actions.checkIn fields | actionId and roomId 128 characters, title 120, summary 280, score 0 to 1,000,000 | The value is cut or clamped to fit. |
Message id | A string up to 64 characters, or a finite number | The 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.