cartel v0.4.0 Cartel.Pusher.Apns2

Apple APNS Provider API worker

Summary

Functions

Sends the message via the specified worker process

Sends a push notification

Functions

push(process, message)

Specs

push(pid, Cartel.Message.Apns2.t) :: :ok | :error

Sends the message via the specified worker process

send(appid, message, tokens \\ [])

Specs

send(String.t, Cartel.Message.Apns2.t, [String.t]) :: {:ok | :error}

Sends a push notification

  • appid: target application identifier present in config.exs
  • message: message struct
  • tokens: list of device tokens
start_link(args)