SendMessage class

Constructors

SendMessage({required String destinationId, required String messageId, int? timeToLive, required Map data})
SendMessage.fromJS(SendMessage _wrapped)

Properties

data Map
Message data to send to the server. Case-insensitive goog. and google, as well as case-sensitive collapse_key are disallowed as key prefixes. Sum of all key/value pairs should not exceed gcm.MAX_MESSAGE_SIZE.
getter/setter pair
destinationId String
The ID of the server to send the message to as assigned by Google API Console.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messageId String
The ID of the message. It must be unique for each message in scope of the applications. See the Cloud Messaging documentation for advice for picking and handling an ID.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeToLive int?
Time-to-live of the message in seconds. If it is not possible to send the message within that time, an onSendError event will be raised. A time-to-live of 0 indicates that the message should be sent immediately or fail if it's not possible. The default value of time-to-live is 86,400 seconds (1 day) and the maximum value is 2,419,200 seconds (28 days).
getter/setter pair
toJS → SendMessage
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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