Messaging class

Constructors

Messaging()

Properties

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

Methods

cancelScheduledMessage(String messageId) Future<MessageStatus?>
getDeviceRegistration() Future<DeviceRegistration?>
getMessageStatus(String messageId) Future<MessageStatus?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish<T>(T message, {String channelName = 'default', PublishOptions? publishOptions, DeliveryOptions? deliveryOptions}) Future<MessageStatus?>
pushWithTemplate(String templateName, {Map<String, dynamic>? templateValues}) Future<MessageStatus?>
registerDevice({List<String>? channels = const ['default'], DateTime? expiration, OnTapHandlerIOS? onTapPushActionIOS, MessageHandler? onMessage, OnTapHandlerAndroid? onTapPushActionAndroid, OnMessageOpenedApp? onMessageOpenedAppAndroid, FirebaseOptions? androidFirebaseOptions}) Future<DeviceRegistrationResult?>
onTapPushAction this function will be called when clicking on the incoming push notification window(iOS only) backgroundMessage_test and tapHandler_test this is not completed new features(this means that using this may not work as it should.) that will be in coming releases If you want customise showing of push-notifications for android - use flutter_local_notifications plugin in handlers. If handlers work incorrectly, you can handle notifications with using firebase_messaging.
sendEmail(String subject, BodyParts bodyParts, List<String> recipients, {List<String>? attachments}) Future<MessageStatus?>
sendEmailFromTemplate(String templateName, EmailEnvelope envelope, {Map<String, String>? templateValues, List<String>? attachments}) Future<MessageStatus?>
subscribe({String? channelName}) Channel
TODO: Add subscribe method
toString() String
A string representation of this object.
inherited
unregisterDevice() Future<bool>

Operators

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

Constants

defaultChannelName → const String