android-services

Android services gem is a ruby wrapper over the google services for android.

QuickStart

You can install the gem using gem install android-services You will need a google API key for communicating with the google services, which you can get from here developer.android.com/guide/google/gcm/gs.html

After getting the API key, you can initialize it in the rails app using an initializer file.

AndroidServices.configure do |config|
         config.api_key = '<API KEY>'
             config.secure = true
end

Sending a simple message

Sending a message to an Android device is easy! The simplest message you can send is:

CloudMessage.new(:registration_ids => [])

Other Options you might want to use:

Contributing to android-services

Copyright © 2012 krishna rokhale. See LICENSE.txt for further details.