nabto_device_fcm_notification_set_project_id()

DESCRIPTION

Set the FCM project id on a notification. The project ID must be created and configured in FCM as explained in https://docs.nabto.com/developer/guides/push/fcm-setup.html. The project ID is copied into the notification.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_fcm_notification_set_project_id(NabtoDeviceFcmNotification* notification, const char* projectId)

PARAMETERS

notification:
[in] The notification to set project ID in
projectId:
[in] The project ID to set

RETURNS

  • NABTO_DEVICE_EC_OK: iff the project ID was set
  • NABTO_DEVICE_EC_OUT_OF_MEMORY: if allocation failed