nabto_device_fcm_notification_get_response_status_code()

DESCRIPTION

Get the response status code from the FCM invocation in case the send resolved with NABTO_DEVICE_EC_OK.

200, If the notification was sent ok. 400, If the notification has an invalid format. 403, If the notification could bot be sent due to missing authorization. 404, If the token is expired.

See https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode for detailed description of the errors.

DECLARATION

NABTO_DEVICE_DECL_PREFIX uint16_t NABTO_DEVICE_API
nabto_device_fcm_notification_get_response_status_code(NabtoDeviceFcmNotification* notification)

PARAMETERS

notification:
[in] The notification to get status code from

RETURN VALUES

status code from the FCM request sent by the basestation. 0 if send has not resolved with NABTO_DEVICE_EC_OK

EXAMPLES

None.