cartel v0.2.2 Cartel.Pusher.Wns

Microsoft WNS interface 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(pid, message)

Specs

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

Sends the message via the specified worker process

send(appid, wns)

Specs

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

Sends a push notification

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

Specs

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