cartel v0.2.0 Cartel.Pusher.Wns

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, message)

Specs

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

Sends a push notification

  • appid: target application identifier present in config.exs
  • message: Cartel.Message struct for the target platform
send_bulk(appid, tokens, message)

Specs

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

Bulk sends the same push notification to multiple recipients

  • appid: target application identifier present in config.exs
  • tokens: device tokens
  • payload: payload
start_link(id, args)