Skip to content
Menu

Overview

Platform support

Markdown version

The operating systems, toolchains and modules each Herald SDK supports, the other platforms, and how to install them.

The Herald SDK is a native library for iOS and a set of modules for Android. Both platforms expose the same calls, with the same names and the same argument order.

Support matrix

iOSAndroid
Minimum OSiOS 16Android 8.0 (API level 26)
LanguageSwift. The package builds in Swift 6 language mode; your app can use Swift 5 or 6.Kotlin (built with Kotlin 2.0.21), Java 17 bytecode
Build toolsXcode 16 or later (Swift tools version 6.0)Android Gradle Plugin 8 (built with 8.7), compileSdk 35
Package formatSwift Package ManagerGradle modules (AAR) from JitPack
Default UI viewsSwiftUIJetpack Compose
Push serviceApple Push Notification service (APNs)Firebase Cloud Messaging (FCM)
Current version0.6.00.6.0

Modules

PlatformModuleWhat it doesRuntime dependencies
iOSHeraldSDKIdentity, events, attributes, sessions, push token registration, push open handling, content card data, in-app message rulesApple system frameworks only
iOSHeraldUIDefault content card feed and in-app message views in SwiftUIHeraldSDK
iOSHeraldNotificationServiceImages and action buttons in push notifications, from a Notification Service ExtensionFoundation and UserNotifications only, so it links into an app extension
iOSHeraldLiveActivityLive Activity attributes and widget, from a widget extensionApple system frameworks only
iOSHeraldGeofenceOpt-in geofence monitoring (0.7.0, not released yet). See Geofences.HeraldSDK, CoreLocation
iOSHeraldPushStoryPush stories, from a Notification Content Extension (0.7.0+)HeraldNotificationService and Apple system frameworks only
Androidherald-coreThe same responsibilities as HeraldSDKkotlinx-coroutines-android 1.8.1
Androidherald-uiDefault content card feed and in-app message views in ComposeCompose BOM 2024.09.02, Material 3, activity-compose 1.9.2
Androidherald-fcmFCM messaging service, token sync, notification display, Live Updatesfirebase-messaging 24.0.3
Androidherald-geofenceOpt-in geofence monitoring (0.7.0, not released yet). Adds no permissions. See Geofences.play-services-location 21.3.0

herald-core adds three permissions to your merged manifest: INTERNET, ACCESS_NETWORK_STATE and POST_NOTIFICATIONS. From 0.7.0, herald-fcm adds POST_PROMOTED_NOTIFICATIONS for Live Updates.

Other platforms

PlatformStatus
React NativeAvailable, installed from git: @herald/react-native, a wrapper over the iOS and Android SDKs. See Quickstart: React Native.
FlutterAvailable, installed from git. The herald_flutter plugin wraps the native SDKs. See Install on Flutter.
UnityAvailable from git: the com.herald.sdk package wraps the iOS and Android SDKs. See Install on Unity.
WebPlanned. Browser push through Herald's web push script works today.

Install

Both SDKs are open source under the Apache License 2.0. The iOS package is at https://github.com/ender1311/herald-ios and the Android modules are at https://github.com/ender1311/herald-android, published through JitPack.

In Xcode, choose File > Add Package Dependencies, enter https://github.com/ender1311/herald-ios and add the HeraldSDK and HeraldUI libraries to your app target. Add HeraldNotificationService to your Notification Service Extension target only. In a Package.swift manifest:

swift
dependencies: [
    .package(url: "https://github.com/ender1311/herald-ios", from: "0.6.0"),
],
targets: [
    .target(name: "Lumen", dependencies: [
        .product(name: "HeraldSDK", package: "herald-ios"),
        .product(name: "HeraldUI", package: "herald-ios"),
    ]),
]

Version numbers follow the policy on Versioning and support.

Next

See Herald decide live →