cartel v0.4.2 Cartel.Pusher.Wns

Microsoft WNS interface worker

Summary

Functions

Sends the message via the specified worker process

Sends a push notification

Functions

push(pid, message)

Specs

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

Sends the message via the specified worker process

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(id, args)