FlutterFCMWrapper class

FCM API Wrapper for Flutter

Constructors

FlutterFCMWrapper({required String apiKey, bool enableLog = false, bool enableServerRespondLog = false})
Constructs an instance of FlutterFCMWrapper.
const

Properties

enableLog bool
Enable to log error thrown and message delivery status
final
enableServerRespondLog bool
Enable to log raw header and body respond from the server
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessageByTokenID({required List<String> userRegistrationTokens, String? title, String? body, String? subtitle, String? titleLocKey, List<Map<String, String>>? titleLocArgs, String? bodyLocKey, List<Map<String, String>>? bodyLocArgs, String? collapseKey, bool isHighPriority = true, bool? contentAvailable, Map<String, bool>? mutableContent, int? timeToLive, String? restrictedPackageName, bool isDryRun = false, Map<String, String>? data, String? sound, String? icon, String? tag, String? color, String? imageUrl, int? badge, String? clickAction, String? androidChannelID, bool isDataMessage = false}) Future<Map<String, dynamic>>
Sends topic message
sendTopicMessage({String? topicName, String? condition, String? title, String? body, String? titleLocKey, List<Map<String, String>>? titleLocArgs, String? bodyLocKey, List<Map<String, String>>? bodyLocArgs, String? subtitle, String? collapseKey, bool isHighPriority = true, bool? contentAvailable, Map<String, bool>? mutableContent, int? timeToLive, String? restrictedPackageName, bool isDryRun = false, Map<String, String>? data, String? sound, String? icon, String? tag, String? color, String? imageUrl, int? badge, String? clickAction, String? androidChannelID, bool isDataMessage = false}) Future<String>
Sends topic message
toString() String
A string representation of this object.
inherited

Operators

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