type is encoded as a string rather than an
object, where the string ends in the suffix "s"
(indicating seconds) and is preceded by the
number of seconds, with nanoseconds
expressed as fractional seconds. For example,
3 seconds with 0 nanoseconds should be
encoded in JSON format as "3s", while 3
seconds and 1 nanosecond should be
expressed in JSON format as "3.000000001s".
The ttl will be rounded down to the nearest
second.
A duration in seconds with up to nine fractional
digits, terminated by 's'. Example: "3.5s".
string
Package name of the application where the
registration tokens must match in order to
receive the message.
map (key: string, value: string)
Arbitrary key/value payload. If present, it will
override google.firebase.fcm.v1.Mess
age.data.
An object containing a list of "key":
value pairs. Example: { "name":
"wrench", "mass": "1.3kg", "count":
"3" }.
object(AndroidNotification)
Notification to send to android devices.
AndroidNotification 通知属性
string
The notification's title. If present, it will
override google.firebase.fcm.v1.Noti
fication.title.
string
The notification's body text. If present, it will
override google.firebase.fcm.v1.Noti
fication.body.
string
The notification's icon. Sets the notification
icon to myicon for drawable resource myicon.
评论0
最新资源