Name
request_eval — Called prior to sending to a GCM notification
Synopsis
#include "modules/mobility/gcm/gcm.h"
| int **request_eval** (
| closure, | |
| | request, | |
| | msg)
; | |
void * <var class="pdparam">closure</var>
;
gcm_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 Google Cloud Messaging (GCM) notification server. Use this hook to inspect or modify the request before delivery to Google. The request has been built from the MCMT by extracting the headers and JSON message payload from the MIME part and encoding them into a JSON string suitable for injection.
- closure
-
The closure function.
- request
-
The GCM request. For a description of this data type see “gcm_request”.
- msg
-
The message. For a description of this data type see “ec_message”.
This hook returns zero or 1. If non-zero, no further hook providers are called.
This hook will be called in any thread.