Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Google Cloud Messaging based-on Sinatra
Ruby JavaScript
branch: master

Merge pull request #1 from fareesh/master

Fixes to ensure out-of-the-box functionality
latest commit ed7dd7a133
@kureikain authored


Google Cloud Messaging based-on Sinatra framework. This small app lets you manage GCM message via a web interface. This app is also designed to easily deploy and running on heroku

Deploy on Heroku

* Clone this repo
    g clone
* Create a heroku app.
    cd sinatra-gcm
    heroku apps:create      
        Creating young-reaches-1763... done, stack is cedar |

* Add MongoLab add-on to your app.

    heroku addons:add mongolab:starter

* Register for a Google API Console on.

* Open welcome.rb, replace your key with my key

    set :AUTHORIZE_KEY => 'AIzaSyAU1_3EdDZyKdo8oRY3vWdq3_B2iUblNGg' 

* Commit your change& deploy
    g add welcome.rb
    g commit -m "Update API KEY"
    g push heroku master

* That's it.


On your Android code, when handling response from Goole GCM server with registration data, you have to POST to with data in this format {:regId => registration_id_of_device}

Then, on your webui, you can create& send notification to all those devices

Something went wrong with that request. Please try again.