Skip to content

favoritemedium/c2dm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##This document is OUT OF DATE and the API have changed significantly. It will be updated in the near future.

c2dm

c2dm sends push notifications to Android devices via google c2dm.

##Installation

$ gem install c2dm

##Requirements

An Android device running 2.2 or newer, its registration token, and a google account registered for c2dm.

##Usage

There are two ways to use c2dm.

Sending an array of notifications:

notifications = [{:registration_id => registration_id2_from_client, :message => "Some awesome message"}]
C2DM::Push.send_notifications(your_google_account_id, your_password, "MyCompany-MyApp-1.0", notifications)

or one at a time:

c2dm = C2DM::Push.new(your_google_account_id, your_password, "MyCompany-MyApp-1.0")
c2dm.send_notification(registration_id2_from_client, "Some awesome message")

##Copyrights

  • Copyright (c) 2010 Amro Mousa. See LICENSE.txt for details.

About

A gem that can be used to send C2DM notifications to android devices. This was forked from amro/c2dm gem (https://github.com/amro/c2dm) by Amro Mousa

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%