Sha256: 79a1779d084906b389c9588a67096a23ec1a02da33fdcb33f462a2724758d18f

Contents?: true

Size: 855 Bytes

Versions: 2

Compression:

Stored size: 855 Bytes

Contents

# c2dm

c2dm sends push notifications to Android devices via google [c2dm](http://code.google.com/android/c2dm/index.html).

##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.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c2dm-0.1.2 README.markdown
c2dm-0.1.0 README.markdown