# Herald developer docs > Herald decides which message each person gets. SDKs for iOS and Android, a server API, a Send API and an MCP server. ## Overview - [Introduction](https://heraldsdk.com/docs/overview/introduction.md): What the Herald mobile SDK does and how it works with Herald decisions. - [Platform support](https://heraldsdk.com/docs/overview/platform-support.md): The operating systems, toolchains and modules each Herald SDK supports, the other platforms, and how to install them. - [Quickstart: iOS](https://heraldsdk.com/docs/overview/quickstart-ios.md): Add the Herald SDK to an iOS app, identify a user, track an event, register for push and show content cards. - [Quickstart: Android](https://heraldsdk.com/docs/overview/quickstart-android.md): Add the Herald SDK to an Android app, identify a user, track an event, register for push and show content cards. - [Quickstart: React Native](https://heraldsdk.com/docs/overview/quickstart-react-native.md): Add the Herald React Native package to an app, identify a user, track an event, register for push and show content cards. - [Install on Flutter](https://heraldsdk.com/docs/overview/install-flutter.md): Add the Herald Flutter plugin to a Flutter app. It wraps the native iOS and Android SDKs, installs from git, and covers identity, events, push, content cards and in-app messages. - [Install on Unity](https://heraldsdk.com/docs/overview/install-unity.md): Add the Herald Unity package to an iOS and Android game, configure it from C#, identify a user, track events, register for push and use content cards and in-app messages. ## Concepts - [Users and identity](https://heraldsdk.com/docs/concepts/users-and-identity.md): Device IDs, anonymous and identified users, user tokens and the three identity verification modes, sign-out and user switching. - [Sessions](https://heraldsdk.com/docs/concepts/sessions.md): When the SDK starts and ends a session (separate foreground and background timeouts, continued across restarts), what it records for each one, and what a new session triggers. - [Events and attributes](https://heraldsdk.com/docs/concepts/events-and-attributes.md): Custom events, screens, purchases, user attributes and subscriptions, with the value types, reserved keys and limits each call follows. - [Device data collected](https://heraldsdk.com/docs/concepts/device-data.md): Exactly what device data the SDK sends, which part you can turn off with minimal mode, what it never collects, and how Herald derives country. - [How delivery works](https://heraldsdk.com/docs/concepts/how-delivery-works.md): How a Herald decision becomes a push notification, content card or in-app message, and how the outcome flows back to the decision. - [Data batching and offline behavior](https://heraldsdk.com/docs/concepts/batching-and-offline.md): How the SDK queues events on disk, when it sends them, how it retries, what it drops, and how it behaves without a network. - [Event schemas](https://heraldsdk.com/docs/concepts/event-schemas.md): Optional, versioned definitions of a custom event's properties. Herald checks every track event with that name, and either rejects or flags the ones that don't match. - [Computed attributes](https://heraldsdk.com/docs/concepts/computed-attributes.md): Per-person values Herald computes from each person's events, such as how often they opened the app this week or when they last bought something, kept up to date as events arrive. - [App signals](https://heraldsdk.com/docs/concepts/app-signals.md): How Herald builds personas and decisions from ten core numbers plus up to six numbers from your own app, such as workouts this week, and how to start from a template for your kind of app. - [Media library](https://heraldsdk.com/docs/concepts/media-library.md): Pick, upload and reuse images and videos in Herald, search free photos and videos from Unsplash and Pexels, and where each channel shows a video. - [Geofences](https://heraldsdk.com/docs/concepts/geofences.md): Add places in the console and get an event when someone with your app enters or leaves one, with the opt-in geofence module for iOS and Android. The SDK never asks for location permission and never sends the device's location. - [Journeys](https://heraldsdk.com/docs/concepts/journeys.md): Multi-step flows that follow each person over days or weeks. Which events start them, how steps work, what counts as converted, and the events your app needs to send. - [How Herald learns with small audiences](https://heraldsdk.com/docs/concepts/learning-with-small-audiences.md): How Herald starts a new agent from public benchmarks and your app's own history, lets small personas borrow from the whole agent, and tells you when your traffic is too thin for your setup. - [Message priority and attention budget](https://heraldsdk.com/docs/concepts/message-priority.md): How Herald ranks messages into categories and gives each person an attention budget that adapts to how they respond, what happens to a message held back, and how the Send API takes part. - [Long-term value](https://heraldsdk.com/docs/concepts/long-term-value.md): How a Thompson Sampling agent can learn which messages make people use your app more over the next 90 days, compared with people who got nothing, and skip a send when no message is likely to help. ## Push notifications - [iOS setup](https://heraldsdk.com/docs/push-notifications/ios-setup.md): Connect Herald to Apple Push Notification service with an APNs auth key, register device tokens and handle notification taps. - [Android setup](https://heraldsdk.com/docs/push-notifications/android-setup.md): Connect Herald to Firebase Cloud Messaging with a service account, add the FCM module and handle notification taps. - [Permission prompts](https://heraldsdk.com/docs/push-notifications/permission-prompts.md): When to ask for notification permission, how to ask on iOS and on Android 13 and later, provisional authorization, and how the SDK records the answer. - [Rich push](https://heraldsdk.com/docs/push-notifications/rich-push.md): Show images in push notifications on iOS with a Notification Service Extension and on Android with a big picture style, and add action buttons from Herald. - [Deep links](https://heraldsdk.com/docs/push-notifications/deep-links.md): Open a specific screen in your app when a user taps a push notification, a content card or an in-app message button. - [Silent push](https://heraldsdk.com/docs/push-notifications/silent-push.md): The sync push Herald sends so content cards and in-app messages arrive without waiting for the next session, and how to wire it on iOS and Android. - [Android notification channels](https://heraldsdk.com/docs/push-notifications/android-notification-channels.md): The default channel Herald pushes use on Android, how to name and translate it, and how channels are chosen in the foreground and background. - [Testing push](https://heraldsdk.com/docs/push-notifications/testing.md): Turn on verbose logging, send a test notification to one device, and fix the most common push failures. - [Pushes your app sends](https://heraldsdk.com/docs/push-notifications/pushes-your-app-sends.md): Keep transactional pushes in your own backend and report each one with the $external_push event, so the per-app push limit counts every push a person gets. - [Push stories](https://heraldsdk.com/docs/push-notifications/push-stories.md): Send a push with 2 to 10 pages people flip through, each with an image, title, subtitle and deep link, shown by a Notification Content Extension on iOS and by the FCM module on Android. ## Live Activities - [Live Activities setup](https://heraldsdk.com/docs/live-activities/setup.md): Add the Live Activity widget to your iPhone app, turn on Apple's Broadcast Capability, and learn what a Live Activity campaign can and cannot do. - [Live Activities on Android](https://heraldsdk.com/docs/live-activities/android.md): How a Live Activity campaign reaches Android phones as a Live Update through FCM, what the Android SDK shows on each version, and Google's rules for promoted notifications. ## Content cards - [Content cards overview](https://heraldsdk.com/docs/content-cards/overview.md): What content cards are, how they reach the device, the three card types and every field in the card data model. - [Create cards in Herald](https://heraldsdk.com/docs/content-cards/authoring.md): Where to set card type, pinning, dismissal, categories, extras and expiry on a message variant in Herald, with the default and limit of each option and a worked example. - [Default feed](https://heraldsdk.com/docs/content-cards/default-feed.md): Show content cards with the built-in SwiftUI and Compose feed, which orders, dismisses and logs cards for you. - [Customizing the feed](https://heraldsdk.com/docs/content-cards/customizing-the-feed.md): Change the default feed's colors, fonts and spacing, filter and sort cards, replace the view for a card type and handle taps yourself. - [Building a custom UI](https://heraldsdk.com/docs/content-cards/custom-ui.md): Read content cards from the SDK's observable store, render them in your own views, and log impressions, clicks and dismissals correctly. - [Pinning, expiry and categories](https://heraldsdk.com/docs/content-cards/pinning-expiry-categories.md): How pinned cards, expiry dates, categories and extras behave on the device, and how to use them in the default feed and in your own UI. ## In-app messages - [In-app messages overview](https://heraldsdk.com/docs/in-app-messages/overview.md): What in-app messages are, the slideup, modal, full-screen and HTML types, how messages reach the device and how the SDK decides to show one. - [Create in-app messages in Herald](https://heraldsdk.com/docs/in-app-messages/authoring.md): How to set format, content, trigger, rules and style for an in-app message variant in Herald, with every option, default and limit, and a worked example. - [Triggers and delivery rules](https://heraldsdk.com/docs/in-app-messages/triggers-and-delivery.md): The three in-app triggers, property filters and their operators, priority, the minimum interval, one message at a time, pending messages and re-eligibility. - [Controlling display](https://heraldsdk.com/docs/in-app-messages/controlling-display.md): Use the in-app message delegate to show, hold or drop a message, show held messages with showNext, and keep messages away from onboarding and checkout. - [Theming and dark mode](https://heraldsdk.com/docs/in-app-messages/theming-and-dark-mode.md): Match in-app messages to your app's colors, fonts, corner radius and spacing, control dark mode, and understand how per-message styles override the theme. - [Custom views](https://heraldsdk.com/docs/in-app-messages/custom-views.md): Replace the default view for any in-app message type, write HTML messages with the JavaScript bridge and its security rules, or replace the presenter entirely. - [Accessibility](https://heraldsdk.com/docs/in-app-messages/accessibility.md): What the default in-app message and content card views do for text size, VoiceOver and TalkBack, focus, touch targets and reduced motion, and what you must do for custom and HTML content. ## Data and privacy - [Data collection controls](https://heraldsdk.com/docs/data-and-privacy/data-collection-controls.md): Every control that limits what the SDK collects and sends: the two device data tiers, minimal mode, what is never collected, setEnabled and wipeData. - [Consent and opt-out](https://heraldsdk.com/docs/data-and-privacy/consent-and-opt-out.md): Gate the SDK on user consent with setEnabled, record per-channel subscriptions, and know what happens to data queued before a user opts out. - [User data deletion](https://heraldsdk.com/docs/data-and-privacy/user-data-deletion.md): Delete a user's SDK data on the device with wipeData, what the SDK stores in Herald for a user, and how to erase it there with the deletion API. - [App Tracking Transparency and privacy manifests](https://heraldsdk.com/docs/data-and-privacy/att-and-privacy-manifests.md): Why the SDK does not need App Tracking Transparency, and the exact contents of the privacy manifest that ships with the iOS SDK. - [App store disclosures](https://heraldsdk.com/docs/data-and-privacy/app-store-disclosures.md): A mapping from what the SDK sends to the App Store privacy label and the Google Play data safety form, as input for the answers your team gives. - [Security and identity verification](https://heraldsdk.com/docs/data-and-privacy/security-and-identity-verification.md): How the SDK authenticates, why the app key is public, how to mint user tokens on your backend, the three verification modes, token rotation, and what Herald encrypts at rest. ## Migration - [Braze concept map](https://heraldsdk.com/docs/migration/braze-concept-map.md): How Braze concepts map to Herald, where there is no equivalent yet, and what to use instead, for lifecycle and CRM teams planning a migration. - [Braze API mapping](https://heraldsdk.com/docs/migration/braze-api-mapping.md): Braze SDK calls and the Herald calls that replace them, in Swift and Kotlin, with the calls that have no equivalent. - [Importing push tokens and users](https://heraldsdk.com/docs/migration/importing-tokens-and-users.md): How users, attributes, email addresses, phone numbers and push tokens get into Herald today, through the server API, the contacts API and the SDK, and what to do with the tokens Braze holds. - [Rebuilding cards and in-app messages](https://heraldsdk.com/docs/migration/rebuilding-cards-and-messages.md): How each Braze content card and in-app message option maps to a Herald delivery option, and how to plan the rebuild. - [Running in parallel](https://heraldsdk.com/docs/migration/parallel-run.md): Run Braze and Herald side by side during a migration, with separate audiences or a holdout, without double sends, with aligned identities and a fair measurement. - [Cutover checklist](https://heraldsdk.com/docs/migration/cutover-checklist.md): The technical, data, privacy, communication and rollback steps to finish a migration and turn off Braze delivery for mobile messaging. - [Sync from your warehouse](https://heraldsdk.com/docs/migration/warehouse-sync.md): How Hightouch, Census or your own job sends warehouse data to Herald through the server API, what the SDK adds from the device, and how to avoid collecting the same data twice. ## Integrations - [Integrations overview](https://heraldsdk.com/docs/integrations/overview.md): What each group of Herald integrations does for the learning loop, every integration with its status, and where to connect it. - [AI assistants (MCP)](https://heraldsdk.com/docs/integrations/ai-assistants.md): Connect Claude, ChatGPT, Cursor or Gemini CLI to the Herald MCP server to read results and, if you allow it, pause agents and draft variants. - [Segment, RudderStack and webhooks](https://heraldsdk.com/docs/integrations/event-sources.md): Send users and events to Herald from Segment, RudderStack or any tool that can post a signed webhook, with the mapping and signature for each. - [RevenueCat, Stripe, App Store and Google Play](https://heraldsdk.com/docs/integrations/revenue.md): Send purchases, renewals and refunds from RevenueCat, Stripe, the App Store or Google Play to Herald as events, and use a revenue event as an agent goal. - [HubSpot, Salesforce and Mailchimp](https://heraldsdk.com/docs/integrations/crm.md): Bring CRM and Mailchimp audience data into Herald as attributes and segments, optionally write results back to your CRM, and stop email to people who unsubscribed in Mailchimp. - [BigQuery, Firebase and Snowflake](https://heraldsdk.com/docs/integrations/warehouses.md): Sync users and events from BigQuery (including the Firebase Analytics and GA4 export) or Snowflake with your own queries, and write decisions back to a table your BI tools can read. - [Amplitude and Mixpanel](https://heraldsdk.com/docs/integrations/product-analytics.md): Sync Amplitude and Mixpanel cohorts to Herald as segments your agents can target, stream Amplitude events in, and optionally send decisions back as events. - [AppsFlyer, Adjust and Branch](https://heraldsdk.com/docs/integrations/attribution.md): Send install attribution from AppsFlyer, Adjust or Branch to Herald, so each person carries their install source and campaign. - [Sending through your tools](https://heraldsdk.com/docs/integrations/senders.md): Let Herald pick the message while Braze, SendGrid, OneSignal, Iterable, Customer.io, Klaviyo, Mailchimp Transactional or your own Twilio account delivers it, with the setup and template variables for each. - [Contentful, Sanity, JSON feeds and Braze catalogs](https://heraldsdk.com/docs/integrations/content-sources.md): Keep message copy in your CMS. Herald syncs it into your library, so agents test and pick from the copy your team already writes. - [Reporting and exports](https://heraldsdk.com/docs/integrations/reporting.md): Get decisions and outcomes out of Herald with the CSV export, Slack alerts, signed outbound webhooks, Google Sheets and hashed ad audiences, with a daily sync to Meta, Google Ads and LinkedIn. ## Reference - [iOS API](https://heraldsdk.com/docs/reference/ios-api.md): Every public type, method and property in the four iOS libraries (core, UI, notification service and Live Activity), with signatures, parameters and threading notes. - [Android API](https://heraldsdk.com/docs/reference/android-api.md): Every public class, function and property in the three Android modules (core, UI and FCM), with signatures, parameters and threading notes. - [SDK REST endpoints](https://heraldsdk.com/docs/reference/rest-endpoints.md): The HTTP endpoints the SDK calls, with headers, schemas, limits, status codes and verification modes, and how your backend mints user tokens. - [Server API](https://heraldsdk.com/docs/reference/server-api.md): The REST endpoints your backend calls: users, events, real-time decide, the decisions and holdout exports, the decisions CSV, contacts and user deletion. - [Send API](https://heraldsdk.com/docs/reference/send-api.md): Send push, web push, email, SMS, in-app messages and content cards from your backend to named people or a segment, now or on a schedule, with scoped API keys, hourly limits and idempotency. - [Event payload spec](https://heraldsdk.com/docs/reference/event-payload.md): Every event type the SDK sends, with its fields and the server's constraints, and the device context sent with each batch in its two tiers. - [Error codes](https://heraldsdk.com/docs/reference/error-codes.md): The HTTP status codes the SDK endpoints return, what the SDK does with each, and the SDK log messages worth acting on. - [API errors](https://heraldsdk.com/docs/reference/api-errors.md): The error envelope every API endpoint shares, what each HTTP status means, when to retry, the rate-limit headers and idempotency conflicts. - [Limits](https://heraldsdk.com/docs/reference/limits.md): 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. - [Changelog](https://heraldsdk.com/docs/reference/changelog.md): 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. - [What's new](https://heraldsdk.com/docs/reference/whats-new.md): Product changes to the Herald server, console, integrations and APIs, newest first, each with a link to its docs. ## Operations - [Logging and debugging](https://heraldsdk.com/docs/operations/logging-and-debugging.md): Turn on SDK logging on iOS and Android, read the log, preview in-app messages and cards without a server, and confirm what reached Herald. - [Troubleshooting](https://heraldsdk.com/docs/operations/troubleshooting.md): Symptoms, causes and fixes for the problems teams hit most often with the Herald SDK, from rejected batches to messages that never show. - [Versioning and support policy](https://heraldsdk.com/docs/operations/versioning-and-support.md): How SDK versions are numbered, where releases are published, what 0.6.0 does not cover yet, the minimum OS versions, how to get help, and how we intend to handle deprecations. ## Optional - [Full docs](https://heraldsdk.com/llms-full.txt): Every page above in one file.