gcm_classify_error

March 26, 2020 Contributors

Name

gcm_classify_error — Determine the meaning of the delivery status code

Synopsis

#include "modules/mobility/gcm.h"

| int **gcm_classify_error** ( | status); |   |

int <var class="pdparam">status</var>;

Description

**Configuration Change. ** This function is available as of Momentum version 3.5.5.

In the context of a Google push notification, determine the meaning of the delivery status code. If you need to determine the delivery method use ec_message_get_delivery_method.

Parameters

status

The "DLV_Response_Status" context variable which contains the protocol-specific error code.

Return Values

This function returns one of the following values:

  • DELIVERY_SUCCESS

  • DELIVERY_TEMPFAILED

  • DELIVERY_PERMFAILED

Threading

It is legal to call this function in any thread.

See Also

Momentum for Mobile Push Notifications, Hooks in the gcm Scope and gcm_get_result_error_code