Skip to main content

msys.gcm.gcm_get_result_error_code

Last updated March 2020

Name

msys.gcm.gcm_get_result_error_code — Get the error code from the response results error

Synopsis

require('msys.gcm');

msys.gcm.gcm_get_result_error_code(error);

error: string

Description

Get the error code from the response results error. The error code should be one of the following:

  • msys.gcm.GCM_NO_ERROR

  • msys.gcm.GCM_UNAVAILABLE

  • msys.gcm.GCM_MISSING_REGISTRATION

  • msys.gcm.GCM_INVALID_REGISTRATION

  • msys.gcm.GCM_MISMATCH_SENDER_ID

  • msys.gcm.GCM_NOT_REGISTERED

  • msys.gcm.GCM_MESSAGE_TOO_BIG

  • msys.gcm.GCM_INVALID_DATA_KEY

  • msys.gcm.GCM_INVALID_TTL

  • msys.gcm.GCM_INTERNAL_SERVER_ERROR

  • msys.gcm.GCM_INVALID_PACKAGE_NAME

  • msys.gcm.GCM_UNKNOW

See Also

Was this page helpful?