Skip to main content

Status Codes

The DLV_Response_Status context variable returns codes specific to the protocol used except when no errors are encountered. When a message is successful, DLV_Response_Status does not exist. Use msys.gcm.gcm_classify_error to determine the error type.

The GCM codes are as follows:

ValueGCM CodeType
0GCM_NO_ERRORN/A
1GCM GCM_UNAVAILABLETemporary
2GCM_MISSING_REGISTRATIONPermanent
3GCM_INVALID_REGISTRATIONPermanent
4GCM_MISMATCH_SENDER_IDPermanent
5GCM_NOT_REGISTEREDPermanent
6GCM_MESSAGE_TOO_BIGPermanent
7GCM_INVALID_DATA_KEYPermanent
8GCM_INVALID_TTLPermanent
9GCM_INTERNAL_SERVER_ERRORTemporary
10GCM_INVALID_PACKAGE_NAMEPermanent

The previous table shows GCM status codes at the time of writing. To confirm these values check the Google Android developer site.

Was this page helpful?