gcm-erlang – An Erlang application for Google Cloud Messaging

By brucify | Published: May 27, 2015



This software provides an Erlang client for Google Cloud Messaging.

What you can do with gcm-erlang:

Using gcm-erlang you can:

  1. start several gen_servers representing different GCM applications defined by different GCM API keys
  2. send notification messages to Android mobile devices registered to your specific application and registered to GCM using a specific registration id

So far gcm-erlang does only provide support for JSON messages since GCM does not allow to send multicast messages using plain text.

How to compile:

The first thing you have to do is to compile all the Erlang files using rebar.

$ ./rebar get-deps compile

How to use with rebar:

You can use gcm_app as a dependency in your rebar.config:

{deps , [
    {gcm, ".*", {git, "https://github.com/pdincau/gcm-erlang.git", {tag, "1.0.1"}}}

See more on Github

Follow Erlang Central:

Have an Erlang Question?

Reach out to the Erlang community