cartel v0.3.0 Cartel.Pusher.Apns

Apple APNS Binary API worker

Summary

Functions

Method to fetch Cartel.Message.Apns.Feedback.t records from feedback service

Sends the message via the specified worker process

Sends a push notification

Bulk sends the same push notification to multiple recipients

Functions

feedback(appid)

Specs

feedback(String.t) :: {:ok, Stream.t}

Method to fetch Cartel.Message.Apns.Feedback.t records from feedback service

Returns an Enumerable Stream of Cartel.Message.Apns.Feedback structs.

push(process, message)

Specs

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

Sends the message via the specified worker process

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

Sends a push notification

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

Specs

send_bulk(String.t, [String.t], Cartel.Message.Apns.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)