Skip to content
Menu

Reference

Changelog

Markdown version

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) and herald-geofence (Android, depends on Play Services location). Herald.shared.enableGeofences() (iOS) and Herald.enableGeofences() (Android) download the app's geofence list and monitor the nearest 20 (iOS) or all of them (Android, at most 100); crossings send track events $geofence_enter and $geofence_exit with geofence_id and geofence_name, at most one per geofence and direction every 5 minutes. disableGeofences() stops it. The SDK never asks for location permission, reads no location before enableGeofences(), 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/geofences with an ETag. A new SDK setting, Geofences (geofences), turns monitoring off for every device. $geofence_enter and $geofence_exit properties are checked for their types (invalid_field), and the events don't count as app activity.
  • Flutter: the herald_flutter plugin 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 HeraldPushStory library in a Notification Content Extension (HeraldStoryViewController), and HeraldNotificationService downloads every page's image; Android's herald-fcm shows them with no extra code. Opening a page logs a push open and a button interaction herald_story_page_<index>. Older SDKs show the first page as a normal push. See Push stories.
  • Unity: the com.herald.sdk package, 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: share and referral_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-fcm shows 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 the POST_PROMOTED_NOTIFICATIONS permission. 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) and Herald.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's herald-fcm records a non-Herald FCM message with a notification when it reaches the app. Silent and data-only pushes are never recorded. Payload keys herald_external_id and herald_category set the ID and category.
  • Herald.shared.heraldId (iOS) and Herald.heraldId (Android): the identified person's User ID (XXXX-XXXX), nil until the first accepted batch after identify and cleared by reset(). Show it as a "Support ID". See Support ID.
  • Both SDKs send lifecycle events on their own: $app_installed, $app_updated, $app_opened (with from_push), $app_foreground and $app_background, also in minimal data collection. trackLifecycleEvents (default on) turns them off. See Lifecycle events.
  • Both SDKs send $deep_link_opened with scheme, host, path and source (push or link) when a deep link goes through the SDK; never the fragment, and the query only with trackDeepLinkQuery. 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 / backgroundSessionTimeout on iOS, foregroundSessionTimeoutMinutes / backgroundSessionTimeoutMinutes on Android, both 30 minutes). The single sessionTimeout / sessionTimeoutMinutes is deprecated and sets both. A cold start within the foreground timeout continues the session. session_start carries session_index and previous_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. remoteConfigVersion shows the version in use. See iOS API and Android API.
  • Both SDKs add setConsent(basis, documentId, documentVersion) and clearConsent(): 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 with computed_ are now reserved: an SDK event that sets one is rejected with invalid_field, and POST /api/v1/users answers 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 schemaVersion to track (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 track event, or a POST /api/v1/events event, 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; new HeraldRichPush.attachMedia(to:timeout:budget:session:). Both SDKs: InAppMessage.Content / InAppContent and ContentCard get videoUrl, videoPosterUrl and credit (MediaCredit), cards also videoAutoplay. HeraldUI and herald-ui show 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 interaction events with action video_play and video_complete: logVideoPlay and logVideoComplete for cards and in-app messages on iOS; Herald.logVideoPlay(card) and Herald.logVideoComplete(card), InAppMessageCallbacks.onVideoPlay() / onVideoComplete() and InAppMessageActions.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_push with category transactional 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 (maxQueuedEventAge on iOS, maxQueuedEventAgeDays on 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:) returns false when 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 heraldId in the batch response. The console now calls the ID your app passes to identify the 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/events request is checked on its own. A bad event is rejected and listed in the response's rejected; 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 sentAt and 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_start properties are checked for their types (invalid_field). $app_opened and $app_foreground count as app activity; $app_installed, $app_updated, $app_background and $external_push don'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, testflight or appstore, in every collection mode, left out until known. The console shows it next to each test phone. See Device data.
  • iOS flush(timeout:) async -> Bool sends queued events and returns true once everything recorded before the call was accepted by Herald. Use it before setEnabled(false). See Batching and offline.
  • Herald (server, all SDK versions): Attributes set to null (from the SDK or POST /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 sent null for it (it used to). Apps can clear email at sign-out this way. The stored event log no longer keeps email or $email values 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 = true on HeraldConfiguration. 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 on HeraldSDK so a widget extension can link it. It holds HeraldActivityAttributes and HeraldLiveActivityWidget, 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. Add HeraldLiveActivityWidget() to your WidgetBundle and set NSSupportsLiveActivities to YES. See Live Activities setup.
  • On iOS 18+, HeraldSDK sends the Live Activity push-to-start token to Herald (push_token with platform apns_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 on setEnabled(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, which herald-fcm sets so the SDK can fetch the FCM token again. Apps with their own FirebaseMessagingService that do not call syncToken can set it. See Android API.
  • Both: after wipeData() and then setEnabled(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 has herald-fcm fetch the FCM token again, which needs HeraldMessagingService.syncToken after configure. 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 setUserToken before 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. ContentCardFeed re-filters when state its filter reads changes.
  • Android: push permission is reported as not_determined on Android 13 and later until the app asks through Herald.requestPushAuthorization, instead of denied. 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 identify and setUserToken are no longer lost. When a signed-in user's batch gets a 401, the SDK keeps it, logs Herald needs a user token: call setUserToken and sends it after setUserToken. Anonymous events keep flowing. A wrong app key no longer drops events either: the SDK logs Herald rejected the app key: check the publishable key in configure and 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) and wipeData() 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-fcm does 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-only isEnabled on both platforms (iOS Herald.shared.isEnabled, Android Herald.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: handleRemoteNotification returns within 25 seconds, and at once before configure.

0.2.1

Released 2026-11-10. Update the version in your install lines.

  • Android: Herald.handleRemoteMessage waits 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_sync arrives. iOS: Herald.shared.handleRemoteNotification(_:), which needs the Remote notifications background mode. Android: automatic with herald-fcm, or Herald.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: HeraldNotificationService keeps a category your app registered, and replaces a category whose id starts with herald. 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-ui and herald-fcm.
  • Source for both under the Apache License 2.0.

Modules

iOSAndroidContents
HeraldSDKherald-coreIdentity, events, sessions, push registration, content card data, in-app message rules
HeraldUIherald-uiDefault content card feed and in-app message views, with theming and dark mode
HeraldNotificationServiceherald-fcmPush images and action buttons (iOS extension); FCM service, token sync, channel and notification display (Android)

Data collection

  • Users: anonymous and identified users, identify with 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.
  • setEnabled and wipeData for consent and deletion. Calls made before configure are 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_open in-app triggers.
  • Images: a Notification Service Extension class on iOS, big picture style on Android.
  • Up to three action buttons from a herald_actions payload 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: debugLoadMessages and debugShowInAppMessage.

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.

See Herald decide live →