MessagingGateway class abstract interface

Platform seam for Firebase Cloud Messaging.

Properties

foregroundMessages → Stream<RemoteMessage>
Foreground FCM messages.
no setter
hashCode → int
The hash code for this object.
no setterinherited
openedMessages → Stream<RemoteMessage>
Notification taps that resume the app.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenRefresh → Stream<String>
FCM token rotations, including the current token at subscribe time.
no setter

Methods

configureForegroundPresentation() → Future<void>
Disables the OS banner so local notifications own the foreground UI.
deleteToken() → Future<void>
Invalidates the current FCM token.
getAPNSToken() → Future<String?>
Apple Push Notification service token, or null on other platforms.
getInitialMessage() → Future<RemoteMessage?>
Message that launched a terminated app, if any.
getPermissionStatus() → Future<NotificationPermission>
Reads the current permission without prompting.
getToken({String? vapidKey}) → Future<String?>
Current FCM registration token.
isSupported() → Future<bool>
Whether FCM can run on this platform/browser.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBackgroundHandler() → void
Registers the package background handler. No-op on web.
requestPermission(NotificationPermissionRequest request) → Future<NotificationPermission>
Prompts the user when required and returns the resulting status.
subscribeToTopic(String topic) → Future<void>
Subscribes this app instance to an FCM topic.
toString() → String
A string representation of this object.
inherited
unsubscribeFromTopic(String topic) → Future<void>
Unsubscribes this app instance from an FCM topic.

Operators

operator ==(Object other) → bool
The equality operator.
inherited