Reference
Changelog
What each SDK release contains: 0.7.0 (not released yet) with geofences, 0.6.0 with reporting pushes your app sends, the Support ID, lifecycle events, better sessions, per-event rejects, guest events linked at sign-in, remote SDK settings, a consent record, event schema versions and video in rich push, in-app messages and cards, 0.5.0 with build kind and confirmed flush on iPhone, 0.4.0 with opt-in crash reports on iPhone, 0.3.0 with Live Activities on iPhone, 0.2.3 with push, card and permission fixes from hands-on testing, 0.2.2 with consent, identity and dark-mode fixes, 0.2.1 with an Android sync push fix, 0.2.0 with sync push and authoring in Herald, and the first release, 0.1.0, for iOS and Android.
Releases follow the policy on Versioning and support. iOS and Android share version numbers.
0.7.0
Not released yet.
- React Native:
@herald/react-native, a TurboModule that wraps the iOS and Android SDKs (configure, identity, events, attributes, push permission and tokens, data control, content cards and an in-app message handler). It installs from git for now. See Quickstart: React Native. - Geofences. New opt-in modules:
HeraldGeofence(iOS library product) andherald-geofence(Android, depends on Play Services location).Herald.shared.enableGeofences()(iOS) andHerald.enableGeofences()(Android) download the app's geofence list and monitor the nearest 20 (iOS) or all of them (Android, at most 100); crossings sendtrackevents$geofence_enterand$geofence_exitwithgeofence_idandgeofence_name, at most one per geofence and direction every 5 minutes.disableGeofences()stops it. The SDK never asks for location permission, reads no location beforeenableGeofences(), and never sends the device's location. See Geofences. - Herald (server): geofences per app in the console under Settings, Geofences (up to 100, radius 100 m to 10 km), served by
GET /api/v1/sdk/geofenceswith an ETag. A new SDK setting, Geofences (geofences), turns monitoring off for every device.$geofence_enterand$geofence_exitproperties are checked for their types (invalid_field), and the events don't count as app activity. - Flutter: the
herald_flutterplugin wraps the iOS and Android SDKs, installed from git (sdks/flutter). It covers configure, identity, events, attributes, email and phone, push registration and taps, the Support ID, flush, opt-out and wipe, content cards and in-app messages with a Dart display handler. See Install on Flutter. - Push stories: a push with 2 to 10 pages, each with an image, title, subtitle and deep link. iOS shows them with the new
HeraldPushStorylibrary in a Notification Content Extension (HeraldStoryViewController), andHeraldNotificationServicedownloads every page's image; Android'sherald-fcmshows them with no extra code. Opening a page logs a push open and abuttoninteractionherald_story_page_<index>. Older SDKs show the first page as a normal push. See Push stories. - Unity: the
com.herald.sdkpackage, a C# API over the iOS and Android SDKs, installed from git. It covers configure, identity, events, purchases, attributes, push permission and taps, the Support ID, data control, content cards and in-app messages with a delegate to show, defer or discard them. See Install on Unity. - Herald (server, all SDK versions): long-term value. A Thompson Sampling agent can learn from the extra active days its messages cause over 90 days, against its holdout group, with annoyance counted against a message, and can skip a send when nothing is likely to help. Optional SDK events:
shareandreferral_signup. Agents that learn from goals are unchanged. - Herald (server, all SDK versions): long-term value agents can learn by message features, test a new approach in shadow or on 10% of people, and learn from other apps when the account opts in. No SDK changes.
- Herald (server, all SDK versions): long-term value agents can choose the time and channel, journey steps can choose a version per person, an app can set a weekly message aim and let the agent whose message adds the most value get a person, agents can write new messages each week, and very large apps can test sequence learning. Long-term value agents don't repeat a message to someone within 7 days. No SDK changes.
- Live Activities on Android. Live Activity campaigns also reach Android phones as Live Updates through FCM.
herald-fcmshows each as an ongoing notification that Android 16 can promote to a status bar chip and the top of the lock screen, with a progress bar or a countdown, and removes it at the end. It adds thePOST_PROMOTED_NOTIFICATIONSpermission.Herald.canPostLiveUpdates()(Android) says whether Android will promote it. See Live Activities on Android.
0.6.0
Released 2026-11-26. iOS and Android: report pushes your app sends itself, so the push limit counts every push; read the person's User ID for a Support ID line; automatic lifecycle and deep link events; separate session timeouts with sessions that continue across restarts; a 30-day limit on queued events; partial-reject handling; remote SDK settings with a kill switch; a consent record; and event schema versions on track. No API removals; the single session timeout is deprecated. Update the version in your install lines.
trackExternalPush(messageId:category:source:)(iOS) andHerald.trackExternalPush(messageId, category, source)(Android) record$external_push. Category is transactional, marketing or other. See Pushes your app sends.- Auto-capture, on by default (
trackExternalPushes): iOS records a tapped push that isn't from Herald; Android'sherald-fcmrecords a non-Herald FCM message with a notification when it reaches the app. Silent and data-only pushes are never recorded. Payload keysherald_external_idandherald_categoryset the ID and category. Herald.shared.heraldId(iOS) andHerald.heraldId(Android): the identified person's User ID (XXXX-XXXX), nil until the first accepted batch afteridentifyand cleared byreset(). Show it as a "Support ID". See Support ID.- Both SDKs send lifecycle events on their own:
$app_installed,$app_updated,$app_opened(withfrom_push),$app_foregroundand$app_background, also in minimal data collection.trackLifecycleEvents(default on) turns them off. See Lifecycle events. - Both SDKs send
$deep_link_openedwithscheme,host,pathandsource(pushorlink) when a deep link goes through the SDK; never the fragment, and the query only withtrackDeepLinkQuery. A URL without a host (mailto:,tel:) sends its scheme only. Minimal data collection sends scheme and host only.trackDeepLinks(default on) turns it off. - Sessions: separate foreground and background timeouts (
foregroundSessionTimeout/backgroundSessionTimeouton iOS,foregroundSessionTimeoutMinutes/backgroundSessionTimeoutMinuteson Android, both 30 minutes). The singlesessionTimeout/sessionTimeoutMinutesis deprecated and sets both. A cold start within the foreground timeout continues the session.session_startcarriessession_indexandprevious_session_id. See Sessions. - Both SDKs fetch the app's SDK settings, set in the console under Settings, SDK settings, at launch and on a foreground at most once an hour, cache them and apply the cached ones at launch. They can change the send interval, the session timeouts, data collection, lifecycle events, tracking of pushes your app sends and deep links without an app update; a setting left at "Use app's value" keeps the app's own. Turning off "Collect events" stops all collection and sending and clears the queue until it is turned back on; push tokens and subscription changes wait and go out when it is.
remoteConfigVersionshows the version in use. See iOS API and Android API. - Both SDKs add
setConsent(basis, documentId, documentVersion)andclearConsent(): the GDPR lawful basis and your policy's id and version, sent with each batch while set and shown to admins on the person's page. A record for your compliance; it doesn't change what is collected. See Consent and opt-out. - Herald (server, all SDK versions): app signals. In Settings → Computed attributes, switch on Use in personas and decisions for up to 6 computed attributes per account, or start from a template for your kind of app (fitness, meditation, learning, shopping, media, finance, games, community). Each person's profile numbers become the ten core numbers plus your signals, scaled 0 to 1; personas, persona traits and LinUCB decisions use them. Changing the set makes LinUCB for the account relearn, and personas refresh at the next nightly discovery.
- Herald (server, all SDK versions): learning with small audiences: new Thompson Sampling agents start from public benchmarks and your app's history, small personas borrow from the whole agent, a Learning fit card shows whether traffic suits the setup, and old results fade back to their starting point, not past it. The fading change applies to every agent; the rest changes for an existing agent only when you turn on Learn faster with small audiences.
- Herald (server, all SDK versions): computed attributes, set in the console under Settings, Computed attributes: per-person counts, sums, and first and last times of an event, stored as
computed_<name>and updated as events arrive, for segments and agent targeting. Attribute keys starting withcomputed_are now reserved: an SDK event that sets one is rejected withinvalid_field, andPOST /api/v1/usersanswers 400. - Herald (server, all SDK versions): a per-app setting, "Store location from IP address" (on by default). When off, Herald records no country from the request's IP address; the region the app sends from the device locale is still kept. See Data collection controls.
- Both SDKs add an optional
schemaVersiontotrack(track(name, properties, schemaVersion:)on iOS,track(event, properties, schemaVersion)on Android), naming the event schema version to check the event against. A malformed version is left off with a debug log, and the event is still sent. Existing calls are unchanged. - Herald (server, all SDK versions): optional event schemas, set in the console under Settings, Event schemas. A
trackevent, or aPOST /api/v1/eventsevent, whose name has a schema is checked against it: in Reject invalid events mode a failing event is rejected (schema_violation); in Accept and warn mode it is kept and shown as a warning with the rejected events. Events without a schema are accepted as before. - Video in rich push, in-app messages and content cards. iOS: the Notification Service Extension attaches a push's
video_url(HTTPS, MP4 or QuickTime, at most 10 MB) and falls back to the poster, then text; newHeraldRichPush.attachMedia(to:timeout:budget:session:). Both SDKs:InAppMessage.Content/InAppContentandContentCardgetvideoUrl,videoPosterUrlandcredit(MediaCredit), cards alsovideoAutoplay.HeraldUIandherald-uishow the poster with a play button in modal and full-screen messages and captioned-image cards, play inline on tap, and autoplay muted in the card feed. Android push shows the poster. See Media library. - Both SDKs send
interactionevents withactionvideo_playandvideo_complete:logVideoPlayandlogVideoCompletefor cards and in-app messages on iOS;Herald.logVideoPlay(card)andHerald.logVideoComplete(card),InAppMessageCallbacks.onVideoPlay()/onVideoComplete()andInAppMessageActions.videoPlayed()/videoCompleted()on Android. See Event payload. - Herald (server, all SDK versions): a media library for images and videos, with uploads and search of Unsplash photos and Pexels photos and videos, and a Choose media picker on every image field.
- Herald (server, all SDK versions): message priority and an attention budget, set in the console under Settings, Messaging limits. A
$external_pushwithcategorytransactional no longer counts toward the budget; any other counts toward the push channel only. No SDK change. - Both SDKs drop queued events more than 30 days old before building a batch and count them in
dropped(maxQueuedEventAgeon iOS,maxQueuedEventAgeDayson Android). - Both SDKs drop an event over 32 KB before queueing it, log it at debug level and count it in
dropped(Herald would reject it). - Both SDKs handle a batch response that lists rejected events: the batch leaves the queue as before, each rejected event is logged at debug level with its reason, and none is retried. On iOS,
flush(timeout:)returnsfalsewhen an event it waited for was rejected. See Rejected events. - Herald (server, all SDK versions): every person has a User ID, searchable on People by every role and returned as
heraldIdin the batch response. The console now calls the ID your app passes toidentifythe External ID. - Herald (server, all SDK versions): a per-app push limit across all sources, on by default at 3 pushes per person per 24 hours, skips agent and campaign pushes for anyone who reached it. Send API messages count but are never skipped.
- Herald (server, all SDK versions): each event in a batch or a
POST /api/v1/eventsrequest is checked on its own. A bad event is rejected and listed in the response'srejected; the rest are kept (before, one bad event failed the whole request with a 400, and the SDKs dropped all of it). Events over 32 KB, and SDK events more than 30 days old, are rejected; server events have no age limit. The console lists rejected events on each connection's page for 30 days. - Herald (server, all SDK versions): SDK event times are corrected for the device's clock, using the batch's
sentAtand the time it arrived, so a phone with a wrong clock no longer puts activity, send times or goal credit in the wrong window. See Clock correction. - Herald (server, all SDK versions): guest events are linked at sign-in. When a device is first bound to a verified user, its anonymous events from the last 30 days (at most 5,000) become that user's: first seen, activity, and goal credit for earlier messages. After a sign-out only the events since then are linked, so a shared device never gives one person's guest browsing to another. See Guests and signed-in users.
- Herald (server, all SDK versions): lifecycle event properties and the
session_startproperties are checked for their types (invalid_field).$app_openedand$app_foregroundcount as app activity;$app_installed,$app_updated,$app_backgroundand$external_pushdon't. The Events page lists the lifecycle events as system events.
0.5.0
Released 2026-11-18. iOS: build kind in device data and a flush that confirms delivery. Android: no changes; the version moves with iOS. No API removals.
- iOS reports the build kind in device data,
context.app.distribution:development,testflightorappstore, in every collection mode, left out until known. The console shows it next to each test phone. See Device data. - iOS
flush(timeout:) async -> Boolsends queued events and returnstrueonce everything recorded before the call was accepted by Herald. Use it beforesetEnabled(false). See Batching and offline. - Herald (server, all SDK versions): Attributes set to
null(from the SDK orPOST /api/v1/users) now remove the key from the user's profile instead of storing a null. A segment condition that checks an attribute exists no longer matches a user who sentnullfor it (it used to). Apps can clearemailat sign-out this way. The stored event log no longer keepsemailor$emailvalues from identify traits or attribute events; the profile and contacts still get them.
0.4.0
Released 2026-11-15. iOS: new opt-in crash and hang reports. Android: no changes; the version moves with iOS. No API removals; update the version in your install lines.
- Crash and hang reports on iPhone, off by default: set
crashReports = trueonHeraldConfiguration. The SDK then sends Apple MetricKit crash and hang reports to Herald (POST /api/v1/sdk/diagnostics), with no user id and no device id. iOS delivers a report on the next launch after a crash. See iOS API. - Reports that fail to send wait on the device (newest 50) and go out on the next launch. Nothing is sent while the SDK is disabled, and
wipeData()deletes waiting reports. - The privacy manifest declares crash data: not linked to the user, not used for tracking, for app functionality.
0.3.0
Released 2026-11-15. iOS: new Live Activities support. Android: no changes; the version moves with iOS. No API removals; update the version in your install lines.
- Live Activities (iPhone, iOS 18+). New library product
HeraldLiveActivity, with no dependency onHeraldSDKso a widget extension can link it. It holdsHeraldActivityAttributesandHeraldLiveActivityWidget, a lock screen and Dynamic Island view that shows a title, body and either a progress bar or a countdown, and opens the campaign's deep link on tap. AddHeraldLiveActivityWidget()to yourWidgetBundleand setNSSupportsLiveActivitiesto YES. See Live Activities setup. - On iOS 18+,
HeraldSDKsends the Live Activity push-to-start token to Herald (push_tokenwith platformapns_live_activity), so campaigns can start a Live Activity. Like the APNs token, it is not sent while the SDK is disabled, and is sent again onsetEnabled(true)and when the user changes.
0.2.3
Released 2026-11-11. iOS and Android. No API removals; update the version in your install lines.
- Android: new
com.herald.sdk.push.PushTokenSource, whichherald-fcmsets so the SDK can fetch the FCM token again. Apps with their ownFirebaseMessagingServicethat do not callsyncTokencan set it. See Android API.
- Both: after
wipeData()and thensetEnabled(true), push comes back when notification permission is still granted. iOS registers with APNs again (and at each launch with permission but no stored token); Android hasherald-fcmfetch the FCM token again, which needsHeraldMessagingService.syncTokenafterconfigure. See Consent and opt-out. - Both: content card impressions are logged once per card per session, not each time a feed is built. An expired card leaves an open feed at its expiry time, without a sync. See Content cards.
- Both: once Herald has refused a signed-in user's message sync without a user token, the SDK waits for
setUserTokenbefore it syncs that user again, and that expected 401 is no longer logged as a warning. - Both: slideups dismiss only by swiping toward their edge (up for a top slideup, down for a bottom one); a sideways swipe no longer dismisses. The VoiceOver and TalkBack Dismiss action is unchanged.
- Android: HTML in-app messages have a close button, as on iOS.
ContentCardFeedre-filters when state its filter reads changes. - Android: push permission is reported as
not_determinedon Android 13 and later until the app asks throughHerald.requestPushAuthorization, instead ofdenied. See Device data.
0.2.2
Released 2026-11-10. iOS and Android. No API removals; update the version in your install lines.
- Both: events recorded between
identifyandsetUserTokenare no longer lost. When a signed-in user's batch gets a 401, the SDK keeps it, logsHerald needs a user token: call setUserTokenand sends it aftersetUserToken. Anonymous events keep flowing. A wrong app key no longer drops events either: the SDK logsHerald rejected the app key: check the publishable key in configureand keeps them for the next launch. See Batching and offline. - Server: a subscribe sent by the SDK lifts only an unsubscribe the SDK recorded. An unsubscribe the user made from an email or SMS link stays.
- Both:
setEnabled(false)andwipeData()send one best-effort push unsubscribe for the device, so Herald stops sending it pushes, and hide cached content cards while the SDK is off. On Android,herald-fcmdoes not show Herald pushes while the SDK is off.setEnabled(true)re-subscribes push when the device still has its token and notification permission. New read-onlyisEnabledon both platforms (iOSHerald.shared.isEnabled, AndroidHerald.isEnabled(context)). See Consent and opt-out. - Both: an in-app message that sets a background or button color without its text color gets black or white text, whichever reads better, instead of the theme's text color. See Theming and dark mode.
- Android: new
Herald.deepLinkHandler, with the same semantics as on iOS. See Deep links. - iOS: an unreadable state file no longer turns a disabled SDK back on.
- iOS:
handleRemoteNotificationreturns within 25 seconds, and at once beforeconfigure.
0.2.1
Released 2026-11-10. Update the version in your install lines.
- Android:
Herald.handleRemoteMessagewaits for the sync push refresh to finish (8 seconds at most) before it returns, so FCM no longer stops the process mid-refresh. Called on the main thread it still returns at once. - iOS: no functional change; version kept in step.
0.2.0
Released 2026-11-10. iOS and Android. No API removals; update the version in your install lines.
SDKs
- Sync push handling on both platforms. The SDK refreshes content cards and in-app messages when a silent push with
herald_syncarrives. iOS:Herald.shared.handleRemoteNotification(_:), which needs the Remote notifications background mode. Android: automatic withherald-fcm, orHerald.handleRemoteMessage(data)from your own messaging service. A sync push that arrives within 30 seconds of the last one is skipped. See Silent push. - iOS rich push:
HeraldNotificationServicekeeps a category your app registered, and replaces a category whose id starts withherald.with the buttons in the push.
Server
- Delivery options per message variant: card type, pinning, dismissal, categories, extras and expiry for content cards; type, buttons, triggers, property filters, priority, re-eligibility, expiry and colors for in-app messages. See Create cards in Herald and Create in-app messages in Herald.
- Push action buttons and a per-message Android channel. See Rich push.
- Sync push, sent after a card or in-app message is written. See How delivery works.
- User deletion API,
DELETE /api/v1/users/{userId}. See User data deletion. - Send a test from Herald on the connection's Mobile SDK card. See Testing push.
0.1.0
The first public release. iOS 16 and later; Android 8.0 (API level 26) and later.
Distribution
- iOS: Swift Package Manager, from
https://github.com/ender1311/herald-ios. - Android: JitPack, as
com.github.ender1311.herald-android:herald-core,herald-uiandherald-fcm. - Source for both under the Apache License 2.0.
Modules
| iOS | Android | Contents |
|---|---|---|
HeraldSDK | herald-core | Identity, events, sessions, push registration, content card data, in-app message rules |
HeraldUI | herald-ui | Default content card feed and in-app message views, with theming and dark mode |
HeraldNotificationService | herald-fcm | Push images and action buttons (iOS extension); FCM service, token sync, channel and notification display (Android) |
Data collection
- Users: anonymous and identified users,
identifywith traits,reset, user switching, and identity verification with user tokens in three modes (required, optional, off). - Events:
track,screen,trackPurchase, user attributes, email and phone contacts, channel subscriptions, and an app-supplied location. - Sessions with a configurable inactivity timeout.
- Two device data tiers, with a minimal mode. No advertising identifiers, carrier or automatic location.
- An on-disk queue of up to 1,000 events, batched uploads, retries with backoff, and validation of every call on the device.
setEnabledandwipeDatafor consent and deletion. Calls made beforeconfigureare kept, up to 1,000.- A privacy manifest in
HeraldSDK.
Push
- APNs and FCM token registration, re-sent after sign-in and sign-out.
- A permission prompt helper on both platforms that records the push subscription.
- Open tracking, deep link routing, and
push_openin-app triggers. - Images: a Notification Service Extension class on iOS, big picture style on Android.
- Up to three action buttons from a
herald_actionspayload key, reported as an open, then a button tap.
Content cards
- Classic, captioned image and image-only cards; pinning, expiry, categories and extras.
- A default feed with impression, click and swipe-to-dismiss logging.
- Data APIs for a custom UI.
In-app messages
- Slideup, modal, full-screen and HTML messages.
- Triggers on session start, custom events with property filters, and push opens; priority, re-eligibility, expiry and a minimum interval.
- Pending messages that wait until they can show, a delegate to show, hold or drop each one, and
showNext(). - Default views and presenter, with themes, per-message colors, custom views and accessibility support.
- Debug-only preview hooks:
debugLoadMessagesanddebugShowInAppMessage.
Known limitations
- Herald authored only classic and captioned image cards, and slideup and modal messages that trigger at session start, once. Version 0.2.0 removes this limit.
- Herald's push senders did not add action buttons, a per-message Android channel or silent pushes. Version 0.2.0 removes this limit.
- App keys cannot be rotated.