cartel v0.2.1 Cartel.Pusher.Apns2

Apple APNS Provider API worker

Summary

Functions

Sends the message via the specified worker process

Sends a push notification

Bulk sends the same push notification to multiple recipients

Functions

push(process, message)

Specs

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

Sends the message via the specified worker process

send(appid, apns2)

Specs

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

Sends a push notification

  • appid: target application identifier present in config.exs
  • message: message struct
send_bulk(appid, tokens, apns2)

Specs

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

Bulk sends the same push notification to multiple recipients

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