pushex v0.0.5 Pushex.ResponseHandler behaviour
This module defines the behaviour to handle notification responses.
It can be used to log the responses or save them in a database for example.
Examples
defmodule MyResponseHandler do
def handle_response(response, request, {pid, ref}) do
# do whatever you want with the response and request
# for example, logging or saving in a DB
end
end
Summary
Functions
Callbacks
Specs
handle_response(response :: Pushex.GCM.response, request :: Pushex.GCM.request, info :: {pid, reference}) :: :ok