Newer Version Available

This content describes an older version of this product. View Latest

PushNotification(payload)

Creates a new instance of the Messaging.PushNotification class using the specified payload parameters as key-value pairs. When you use this constructor, you don’t need to call setPayload to set the payload.

Signature

1public PushNotification(Map<String,Object> payload)

Parameters

payload
Type:Map<String, Object>
The payload, expressed as a map of key-value pairs.