MockFirebaseMessaging class
- Inheritance
-
- Implemented types
-
- Mixed-in types
-
Methods
-
delegateFor({FirebaseApp? app})
→ FirebaseMessagingPlatform
-
Enables delegates to create new instances of themselves if a none default
FirebaseApp instance is required by the user.
override
-
deleteToken()
→ Future<void>
-
Removes access to an FCM token previously authorized with optional
senderId.
inherited
-
getAPNSToken()
→ Future<String?>
-
On iOS & MacOS, it is possible to get the users APNs token. This may be required
if you want to send messages to your iOS devices without using the FCM service.
inherited
-
getInitialMessage()
→ Future<RemoteMessage?>
-
If the application has been opened from a terminated state via a RemoteMessage
(containing a Notification), it will be returned, otherwise it will be
null.
override
-
getNotificationSettings()
→ Future<NotificationSettings>
-
Returns the current NotificationSettings.
inherited
-
getToken({String? vapidKey})
→ Future<String>
-
Returns the default FCM token for this device and optionally
senderId.
override
-
isSupported()
→ Future<bool>
-
isSupported() informs web users whether
the browser supports Firebase.Messaging
inherited
-
noSuchMethod(Invocation invocation, {Object? returnValue, Object? returnValueForMissingStub = deferToDefaultResponse})
→ dynamic
-
Handles method stubbing, method call verification, and real method calls.
inherited
-
registerBackgroundMessageHandler(BackgroundMessageHandler handler)
→ void
-
Allows delegates to create a background message handler implementation.
inherited
-
requestPermission({bool? alert = true, bool? announcement = false, bool? badge = true, bool? carPlay = false, bool? criticalAlert = false, bool? provisional = false, bool? sound = true})
→ Future<NotificationSettings>
-
Prompts the user for notification permissions.
override
-
sendMessage({required String to, Map<String, String>? data, String? collapseKey, String? messageId, String? messageType, int? ttl})
→ Future<void>
-
Send a new RemoteMessage to the FCM server.
inherited
-
setAutoInitEnabled(bool enabled)
→ Future<void>
-
Enable or disable auto-initialization of Firebase Cloud Messaging.
inherited
-
setDeliveryMetricsExportToBigQuery(bool enabled)
→ Future<void>
-
Enables or disables Firebase Cloud Messaging message delivery metrics export to BigQuery.
inherited
-
setForegroundNotificationPresentationOptions({required bool alert, required bool badge, required bool sound})
→ Future<void>
-
Sets the presentation options for iOS based notifications when received in
the foreground.
inherited
-
setInitialValues({bool? isAutoInitEnabled})
→ FirebaseMessagingPlatform
-
Sets any initial values on the instance.
override
-
subscribeToTopic(String topic)
→ Future<void>
-
Subscribe to topic in background.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsubscribeFromTopic(String topic)
→ Future<void>
-
Unsubscribe from topic in background.
inherited