FirebaseCloudMessagingServer class

Send Firebase Cloud Messages directly from your Dart or Flutter App

Constructors

FirebaseCloudMessagingServer(Map<String, dynamic> firebaseServiceCredentials, {bool cacheAuth = true})

Properties

accessCredentials ↔ AccessCredentials?
getter/setter pair
cacheAuth bool
Caches authCredentials(up to 1 hour)
final
firebaseServiceCredentials Map<String, dynamic>
Firebase console: open settings > Service Accounts Generate New Private Key > Generate Key Open Your Json file and Copy all the code.
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
performAuth() Future<AccessCredentials?>
send(FirebaseSend ob) Future<ServerResult>
Send Only One Message
sendMessages(List<FirebaseSend> sendObjects) Future<List<ServerResult>>
Send Multiple Messages at once
toString() String
A string representation of this object.
inherited

Operators

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