Skip to content

A Simple EventMachine Google Cloud Messaging Client

License

Notifications You must be signed in to change notification settings

pocket-playlab/em-gcm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

em-gcm

An Simple EventMachine based client for Google Cloud Messaging

Usage

EM.run do
  client = EM::GCM::Client.new(server_api_key)
  notification = {
    :restricted_package_name => "package_name",
    :registration_ids => ["registraction_id"],
    :data => { 'alert' => 'test' },
    #:dry_run => true
  }
  client.deliver(notification) do |response|
    #Handle response or success
  end
end

Todo

More test converage!

Contributing

Once you've made your great commits:

  1. Fork em-gcm
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create an Issue with a link to your branch
  5. That's it!

About

A Simple EventMachine Google Cloud Messaging Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%