live_updates 0.0.3
live_updates: ^0.0.3 copied to clipboard
iOS Live Activities and Android Live Update notifications with one Dart API. Built on FFIgen and JNIgen, no platform channels.
0.0.3 #
- iOS 18 broadcast:
start(..., iosChannelId:)andstartOrUpdate(..., iosChannelId:)subscribe a Live Activity to an APNs broadcast channel. tool/send_push.dart:apns-channel(create, list, delete) andapns-broadcastcommands;--input-push-channeland--activity-keyfor push-to-start.create_widget: per-configuration widget bundle ids and App Groups for flavors (LIVE_UPDATES_APP_GROUPbuild setting); offers to install the xcodeproj gem when it is missing; manual setup steps in the README.LiveUpdates.setBackgroundActionHandler: handle button presses while the app is not running in a headless Flutter engine (Android and iOS). Re-runcreate_widget --forceto updateLiveUpdatesActionIntent.swift.LiveUpdateAction.requiresUnlock: ask for an unlock before a Lock Screen press is handled (iOS, Android 12+).- Android 17:
AndroidLiveUpdateOptions.metrics(MetricStyle, withcriticalMetric) and semantic colors for the body, the progress bar and metrics (LiveUpdateSemanticStyle). - iOS 27: the generated widget leaves the title out of the compact Dynamic
Island view when it is limited in width (landscape). Re-run
create_widget --forceto update the widget. - Fix: an Android
channelIdoption no longer affects iOS push settings.
0.0.2 #
- Push tokens (
LiveUpdate.pushTokens,LiveUpdates.pushToStartTokens) replay the current token to new listeners. LiveUpdatePushToken.toString()no longer includes the token.
0.0.1 #
- Initial release.
- Start, update and end iOS Live Activities and Android Live Updates with one API.
- iOS: FFIgen bindings to an ActivityKit bridge, push-to-start and push token
streams,
create_widgetcommand generating a SwiftUI widget extension. - Android: JNIgen bindings; ongoing notifications with
ProgressStyleon Android 16+ and promotion to Live Updates where supported, progress bar fallback below; remote payloads;canPostPromotedNotifications(). - Tap routes, notification permission request, no-op on other platforms.
- Images (
LiveUpdateImage) shared with the iOS widget through an App Group and shown as the Android large icon. endAll(),onStartedandLiveUpdate.states.startOrUpdate(key, content)andfind(key)for app-chosen keys.- Buttons (
LiveUpdateAction) with background or open-app handling andonAction/LiveUpdate.actions.