A light-weight Ruby Apple Push Notification Provider
Ruby C Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
APN
PushRemote
RKBKit
TCBPushAdmin
Admin.rb
Client.rb
Device.rb
Listener.rb
README.md
ReqPath.rb
main.rb

README.md

PushProvider

This is a light-weight Ruby-based Apple Push Notifications Provider. When run, main.rb will listen on the port 1337, accepting connections for administrators to send notifications to given devices, and for devices to register their device IDs.

One should place their private key and/or certificate pem file in resources/, and title it cert.pem. This will allow PushProvider to connect to Apple's APNS over an encrypted, SSL connection.

PushAdmin

This is a simple, command-line interface for connecting to localhost as a push administrator. The main file, remote.rb, will display a prompt. The supported commands are currently list and send. The send command takes two arguments. The first should be the hex device ID, the second a message. If the message contains spaces, quotations should be used:

$ ruby remote.rb
> list
device IDs here
> send devID "hello, world!"
> quit

TCBPushAdmin

This small Cocoa application will connect to localhost, using the KeyedBits protocol to communicate with the locally running instance of PushProvider. It provides a simple interface for sending notifications, setting badge numbers, and playing sounds to a given device.