live_updates 0.0.2
live_updates: ^0.0.2 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.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.