firebase_messaging_watchos 0.1.1
firebase_messaging_watchos: ^0.1.1 copied to clipboard
watchOS implementation of firebase_messaging, bridging the Firebase Apple SDK (FirebaseMessaging) over dart:ffi for tokens, topics, and messages.
0.1.1 #
- API docs and comments say "release" for handing native memory back.
- Example: the notification settings screen calls the message-content setting "Message Content".
- Example:
pubspec.yamlnamesfirebase_messaging: ^16.7.0instead ofany.
0.1.0 #
- Released with flutter-watchos 0.1.0. The code is the same as in the last published build.
- The watchOS implementation of
firebase_messaging: a dart:ffi bridge over the Firebase Apple SDK (FirebaseMessaging) implementing tokens (getToken,getAPNSToken,deleteToken,onTokenRefresh), permissions (requestPermission, andgetNotificationSettingsmapped to the subset ofUNNotificationSettingsthat watchOS has), messages (onMessage,onMessageOpenedApp,getInitialMessage), topics (subscribeToTopic,unsubscribeFromTopic), and presentation and auto-init settings. - Receives the APNs device token and notification payloads through the
flutter-watchosrunner'sFlutterWatchOSAppDelegate(@WKApplicationDelegateAdaptor), the only path watchOS offers for remote notifications. registerBackgroundMessageHandleris a no-op (watchOS has no background isolate);setDeliveryMetricsExportToBigQueryis Android and web only.- Scaffolded with
flutter-watchos plugin port, then finished by hand. - Links the Firebase Apple SDK through the CLI's support for external SwiftPM dependencies.
- Checked on the watchOS 27.0 Simulator: the example builds and starts, and the host unit tests pass. Not yet run on a physical Apple Watch.