Skip to content
Menu

Reference

Limits

Markdown version

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

LimitValueNotes
Events per batch100Server limit; the SDK builds batches of up to 100
Batch body size512 KBServer limit; the SDK halves a batch until it fits
Size of one event32 KB as JSONThe 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 age30 daysServer limit for SDK events, on the corrected time; an older event is rejected as too_old
Rejected events kept30 days; up to 1,000 stored per connection per UTC dayShown 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 kept30 days; up to 200 stored per connection per UTC dayEvents kept in Accept and warn mode; past 200 in a day they are still accepted, but the warning isn't stored
Reports per diagnostics request20Server limit; iOS crash reports only
Diagnostics body size256 KBServer limit; the SDK drops a single report larger than this
Single event larger than a batchDroppedDropped on the device with a warning; never sent
Events in the on-device queue1,000The oldest are dropped first and counted in dropped
Age of a queued event30 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 configure1,000Later calls are dropped with a warning
Request timeout30 seconds on iOS; 10-second connect and 15-second read on Android
Remote config fetchAt launch, then on a foreground at most once an hourSDK 0.6.0 and later
Event schemas per app100Each event name counts once, whatever its number of versions
Properties per event schema50
Versions per event schema50Contact support to archive old ones
Computed attributes per app20
Model signals per account6Across all the account's apps
Computed attribute window90 days (2,160 hours)Counts and sums only; last and first time cover all history

Flushing and retries

SettingDefaultOption
Flush timer, in the foreground10 secondsiOS flushInterval, Android flushIntervalSeconds; values below 1 second act as 1
Flush at queue size20 eventsflushAt
Flush on backgroundAlways
First retry delay0.5 to 1 secondDoubles after each failure
Longest retry delay5 minutes
Longest Retry-After honored1 hourHeader (seconds or HTTP date) or retryAfterSeconds in the body

Sessions and in-app timing

SettingDefaultOption
Session timeout30 minutes of inactivity in the foreground; 30 minutes in the backgroundiOS foregroundSessionTimeout and backgroundSessionTimeout (seconds), Android foregroundSessionTimeoutMinutes and backgroundSessionTimeoutMinutes
Minimum interval between triggered in-app messages30 secondsiOS inAppMinimumInterval, Android inAppMinimumIntervalSeconds
Session activity saved to diskAt least once a minute, and on background
In-app messages on screen at once1

Field lengths and values

FieldRule
External ID (userId)1 to 200 characters
Event and screen name1 to 255 characters
Event property keyUp to 255 characters
Attribute and trait key1 to 255 characters
Attribute valueString, number, boolean, null, or array of strings
Product ID1 to 255 characters
Currency3 letters
QuantityWhole number, 1 or more
Price, numeric properties and attributesFinite
EmailValid address (the server's email check)
PhoneE.164: +, then 7 to 15 digits, first digit not 0
Latitude, longitude-90 to 90, -180 to 180
Push token1 to 4,096 characters
Message ID, decision ID, button ID in interactions1 to 200 characters
Event ID1 to 128 characters
Session ID1 to 64 characters
Device ID1 to 128 characters
Bundle ID on a push token1 to 255 characters
Context stringsSee Event payload spec
Consent document ID and versionUp to 100 characters each
Remote send interval5 to 300 seconds
Remote session timeouts60 to 86,400 seconds in whole minutes (1 to 1,440 minutes in the console)

Messages

LimitValue
Content cards per fetch100, newest first
In-app messages per fetch50, newest first
Push action buttons3
HTML bridge button ID (iOS)200 characters
Push open records kept for deduplicationThe last 50 decisions
Push limit across all sources, per person per appOn 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 channelPush 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 / source200 / 100 characters

Images

WhereLimit
iOS rich push (HeraldNotificationService)HTTPS only, 10 MB, JPEG, PNG, GIF or HEIC, 20-second timeout
iOS HeraldUI images20 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 images10 MB download, 10-second connect and read timeouts, decoded to at most 4 megapixels and the display width

Media

LimitValue
Uploaded imageJPEG, PNG, GIF or WebP, 10 MB
Uploaded videoMP4, 50 MB, with a poster image
Upload description500 characters
iOS push videoHTTPS, video/mp4 or video/quicktime, 10 MB, 60% of a 25-second budget; the poster is attached when the video fails
Push image presets1,024 by 512 pixels (JPEG, quality 80; 70 for Android)
In-app message and content card presets1,080 by 1,080 and 1,200 by 800 pixels
Email image preset1,200 pixels wide
Stock search query100 characters
Stock search pageup to page 50, 1 to 30 results per page, 24 by default
Stock searches per account120 per hour (cached repeats don't count)
Stock searches across all accounts45 per hour for Unsplash and 180 per hour for Pexels (cached repeats don't count)
Search cache10 minutes
Library page40 items
APNs payload4,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.

LimitValue
Geofences per app100
Radius100 to 10,000 meters
Name1 to 100 characters
Regions monitored on iOSThe 20 nearest, minus regions your app monitors itself
Geofences registered on AndroidAll 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 direction1 every 5 minutes, on the device

Users and events APIs

LimitValue
Users per request1 to 1,000
Events per request1 to 1,000
Request body4 MB
Event ID1 to 128 characters
Size of one event32 KB as JSON
Event timeNo more than 5 minutes ahead of Herald's clock; no age limit

Contacts API

LimitValue
Contacts per request1 to 1,000
Contact value1 to 4,096 characters
APNs token64 or more hex characters

See Herald decide live →