CloudMessagingService class Services

A service for interacting with Firebase Cloud Messaging.

The functions are distributed over mixins to keep the code organized. The mixins for this class are:

Mixed in types

Constructors

CloudMessagingService(FirebaseMessaging cloudMessagingInstance)

Properties

hashCode int
The hash code for this object.
no setterinherited
instance FirebaseMessaging
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nonTerminatedNotificationStream() Stream<String?>
Streams notifications received while the app is in the background or foreground.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSignInHandler(UserModel user, Map<String, bool> notificationPreferences) Future<void>
Handles the notification initialization required when a user signs in.
inherited
onSignOutHandler(UserModel? user) Future<void>
Unsubscribes from all cloud notifications when a user signs out.
inherited
terminatedNotificationHandler() Future<String?>
Checks if the app was opened from the terminated state by a notification
inherited
toString() String
A string representation of this object.
inherited
updateTopicSubscription(String topic, {bool enabled = true}) Future<void>
Subscribes or unsubscribes from topic based on the enabled parameter.
inherited

Operators

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