request_eval

March 26, 2020 Contributors

Name

request_eval — Called prior to sending to APNs

Synopsis

#include "modules/mobility/apn/apn.h"

| int **request_eval** ( | closure, |   |
|   | request, |   |
|   | msg); |   |

void * <var class="pdparam">closure</var>;
apn_request * <var class="pdparam">request</var>;
ec_message * <var class="pdparam">msg</var>;

Description

**Configuration Change. ** This feature is available as of version 3.5.5.

This hook is called prior to sending to the Apple push notification server.

Parameters

closure

The closure function.

request

The APN request. For a description of this data type see “apn_request”.

msg

The message. For a description of this data type see “ec_message”.

Return Values

This hook returns zero or 1. If non-zero, no further hook providers are called.

Threading

This hook will be called in any thread.

See Also

Momentum for Mobile Push Notifications and Hooks in the apn Scope .