nabto_device_fcm_notification_set_payload()

DESCRIPTION

Set a JSON document/payload according to the format https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_fcm_notification_set_payload(NabtoDeviceFcmNotification* notification, const char* payload)

PARAMETERS

notification:
[in] The notification to set payload in
payload:
[in] The payload to set

RETURNS

  • NABTO_DEVICE_EC_OK: iff the payload was set
  • NABTO_DEVICE_EC_OUT_OF_MEMORY: if allocation failed