payload property

Map<String, Object?>? payload
getter/setter pair

APNs payload as a JSON object, including both aps dictionary and custom payload.

See Payload Key Reference. If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. The backend sets a default value for apns-expiration of 30 days and a default value for apns-priority of 10 if not explicitly set.

The values for Object must be JSON objects. It can consist of num, String, bool and null as well as Map and List values.

Implementation

core.Map<core.String, core.Object?>? payload;