Pigeon v0.10.1 Pigeon.GCM

Handles all Google Cloud Messaging (GCM) request and response functionality.

Summary

Functions

chunk_registration_ids(reg_ids)
encode_requests(registration_ids, payload)
handle_200_status(body, n, on_response)
handle_error_status_code(reason, notification, on_response)
parse_result(result)
parse_success(result)
process_callback(arg, notification, on_response)
process_response(status, body, notification, on_response)
push(notification)

Specs

push(Pigeon.GCM.Notification) :: none

Sends a push over GCM

push(notification, on_response)

Specs

push(Pigeon.GCM.Notification, (() -> none)) :: none

Sends a push over GCM and executes function on success/failure.

push(notification, config, on_response \\ nil)