cartel v0.2.2 Cartel.Pusher.Gcm

Google GCM 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.Gcm.t) :: :ok | :error

Sends the message via the specified worker process

send(appid, gcm)

Specs

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

Sends a push notification

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

Specs

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