Reference
Limits
Every limit in the SDK and its endpoints, with its value: batch size, string lengths, queue cap, flush and session timing, message caps, image sizes, media uploads and search limits and more.
Every limit the SDK and its endpoints enforce, as of the current release. A row that needs a newer SDK names the version. Values are the same on iOS and Android unless a row says otherwise. Lengths count UTF-16 code units.
Batches and the queue
| Limit | Value | Notes |
|---|---|---|
| Events per batch | 100 | Server limit; the SDK builds batches of up to 100 |
| Batch body size | 512 KB | Server limit; the SDK halves a batch until it fits |
| Size of one event | 32 KB as JSON | The SDK drops a larger event before queueing it, logs it at debug level and counts it in dropped; the server rejects one as too_large and keeps the rest of the batch |
| Event age | 30 days | Server limit for SDK events, on the corrected time; an older event is rejected as too_old |
| Rejected events kept | 30 days; up to 1,000 stored per connection per UTC day | Shown on the connection's page in the console; past 1,000 in a day they are still rejected but not stored. Schema warnings don't count toward the 1,000 |
| Schema warnings kept | 30 days; up to 200 stored per connection per UTC day | Events kept in Accept and warn mode; past 200 in a day they are still accepted, but the warning isn't stored |
| Reports per diagnostics request | 20 | Server limit; iOS crash reports only |
| Diagnostics body size | 256 KB | Server limit; the SDK drops a single report larger than this |
| Single event larger than a batch | Dropped | Dropped on the device with a warning; never sent |
| Events in the on-device queue | 1,000 | The oldest are dropped first and counted in dropped |
| Age of a queued event | 30 days (SDK 0.6.0 and later; maxQueuedEventAge on iOS, maxQueuedEventAgeDays on Android) | Older events are dropped before a batch is built and counted in dropped, matching the server's 30-day limit |
Calls kept before configure | 1,000 | Later calls are dropped with a warning |
| Request timeout | 30 seconds on iOS; 10-second connect and 15-second read on Android | |
| Remote config fetch | At launch, then on a foreground at most once an hour | SDK 0.6.0 and later |
| Event schemas per app | 100 | Each event name counts once, whatever its number of versions |
| Properties per event schema | 50 | |
| Versions per event schema | 50 | Contact support to archive old ones |
| Computed attributes per app | 20 | |
| Model signals per account | 6 | Across all the account's apps |
| Computed attribute window | 90 days (2,160 hours) | Counts and sums only; last and first time cover all history |
Flushing and retries
| Setting | Default | Option |
|---|---|---|
| Flush timer, in the foreground | 10 seconds | iOS flushInterval, Android flushIntervalSeconds; values below 1 second act as 1 |
| Flush at queue size | 20 events | flushAt |
| Flush on background | Always | |
| First retry delay | 0.5 to 1 second | Doubles after each failure |
| Longest retry delay | 5 minutes | |
Longest Retry-After honored | 1 hour | Header (seconds or HTTP date) or retryAfterSeconds in the body |
Sessions and in-app timing
| Setting | Default | Option |
|---|---|---|
| Session timeout | 30 minutes of inactivity in the foreground; 30 minutes in the background | iOS foregroundSessionTimeout and backgroundSessionTimeout (seconds), Android foregroundSessionTimeoutMinutes and backgroundSessionTimeoutMinutes |
| Minimum interval between triggered in-app messages | 30 seconds | iOS inAppMinimumInterval, Android inAppMinimumIntervalSeconds |
| Session activity saved to disk | At least once a minute, and on background | |
| In-app messages on screen at once | 1 |
Field lengths and values
| Field | Rule |
|---|---|
External ID (userId) | 1 to 200 characters |
| Event and screen name | 1 to 255 characters |
| Event property key | Up to 255 characters |
| Attribute and trait key | 1 to 255 characters |
| Attribute value | String, number, boolean, null, or array of strings |
| Product ID | 1 to 255 characters |
| Currency | 3 letters |
| Quantity | Whole number, 1 or more |
| Price, numeric properties and attributes | Finite |
| Valid address (the server's email check) | |
| Phone | E.164: +, then 7 to 15 digits, first digit not 0 |
| Latitude, longitude | -90 to 90, -180 to 180 |
| Push token | 1 to 4,096 characters |
| Message ID, decision ID, button ID in interactions | 1 to 200 characters |
| Event ID | 1 to 128 characters |
| Session ID | 1 to 64 characters |
| Device ID | 1 to 128 characters |
| Bundle ID on a push token | 1 to 255 characters |
| Context strings | See Event payload spec |
| Consent document ID and version | Up to 100 characters each |
| Remote send interval | 5 to 300 seconds |
| Remote session timeouts | 60 to 86,400 seconds in whole minutes (1 to 1,440 minutes in the console) |
Messages
| Limit | Value |
|---|---|
| Content cards per fetch | 100, newest first |
| In-app messages per fetch | 50, newest first |
| Push action buttons | 3 |
| HTML bridge button ID (iOS) | 200 characters |
| Push open records kept for deduplication | The last 50 decisions |
| Push limit across all sources, per person per app | On by default at 3 pushes per 24 hours; adjustable from 1 to 20, or off, in Settings > General. Counts every mobile push, including ones your app sends itself; skips only agent and campaign pushes. Used in Observe mode; Enforce mode uses the messaging limits below. See Pushes your app sends |
| Messaging limits (max a day / max a week / min a week), per person per channel | Push 3/8/1, web push 3/8/1, email 1/4/1, SMS 1/2/1, over a trailing 24 hours and 7 days; an empty maximum means no limit. Category caps: Engagement 2 a day, Promotions 1 a day and 3 a week. Set in Settings > Messaging limits. See Message priority and attention budget |
$external_push message_id / source | 200 / 100 characters |
Images
| Where | Limit |
|---|---|
iOS rich push (HeraldNotificationService) | HTTPS only, 10 MB, JPEG, PNG, GIF or HEIC, 20-second timeout |
iOS HeraldUI images | 20 MB download, decoded at the drawn size up to 4,096 pixels on the long edge, 64 MB in-memory cache |
Android push image (herald-fcm, app in foreground) | 5 MB, 5-second connect and read timeouts, 8 seconds in total, scaled to fit 1,024 by 1,024 pixels |
Android herald-ui images | 10 MB download, 10-second connect and read timeouts, decoded to at most 4 megapixels and the display width |
Media
| Limit | Value |
|---|---|
| Uploaded image | JPEG, PNG, GIF or WebP, 10 MB |
| Uploaded video | MP4, 50 MB, with a poster image |
| Upload description | 500 characters |
| iOS push video | HTTPS, video/mp4 or video/quicktime, 10 MB, 60% of a 25-second budget; the poster is attached when the video fails |
| Push image presets | 1,024 by 512 pixels (JPEG, quality 80; 70 for Android) |
| In-app message and content card presets | 1,080 by 1,080 and 1,200 by 800 pixels |
| Email image preset | 1,200 pixels wide |
| Stock search query | 100 characters |
| Stock search page | up to page 50, 1 to 30 results per page, 24 by default |
| Stock searches per account | 120 per hour (cached repeats don't count) |
| Stock searches across all accounts | 45 per hour for Unsplash and 180 per hour for Pexels (cached repeats don't count) |
| Search cache | 10 minutes |
| Library page | 40 items |
| APNs payload | 4,096 bytes; the body is shortened first, then video_url is dropped, never the poster |
Media in a message can only come from Unsplash, Pexels or your Herald uploads, over HTTPS. See Media library.
Geofences
SDK 0.7.0+, not released yet. See Geofences.
| Limit | Value |
|---|---|
| Geofences per app | 100 |
| Radius | 100 to 10,000 meters |
| Name | 1 to 100 characters |
| Regions monitored on iOS | The 20 nearest, minus regions your app monitors itself |
| Geofences registered on Android | All of them (Android allows 100 per app). After a restart, or Location turned off and on, they resume the next time the app opens |
| Events per geofence and direction | 1 every 5 minutes, on the device |
Users and events APIs
| Limit | Value |
|---|---|
| Users per request | 1 to 1,000 |
| Events per request | 1 to 1,000 |
| Request body | 4 MB |
| Event ID | 1 to 128 characters |
| Size of one event | 32 KB as JSON |
| Event time | No more than 5 minutes ahead of Herald's clock; no age limit |
Contacts API
| Limit | Value |
|---|---|
| Contacts per request | 1 to 1,000 |
| Contact value | 1 to 4,096 characters |
| APNs token | 64 or more hex characters |