cartel v0.6.0 Cartel.Pusher.Wns

Microsoft WNS interface worker

Summary

Functions

Generate the registered process name for the requested app pusher

Sends a push notification

Starts the pusher

Functions

handle_push(pid, message, payload)

Callback implementation for Cartel.Pusher.handle_push/3.

name(appid)

Specs

name(String.t) :: atom

Generate the registered process name for the requested app pusher

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

Specs

send(String.t, Cartel.Message.Wns.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)

Specs

start_link(%{sid: String.t, secret: String.t}) :: GenServer.on_start

Starts the pusher