Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Code to deploy an APNS server on Heroku

branch: master
Octocat-spinner-32 config Initial commit August 15, 2010
Octocat-spinner-32 db Initial commit August 15, 2010
Octocat-spinner-32 .gems Initial commit August 15, 2010
Octocat-spinner-32 .gitignore Initial commit August 15, 2010
Octocat-spinner-32 README.markdown New readme August 15, 2010
Octocat-spinner-32 config.ru Initial commit August 15, 2010
Octocat-spinner-32 index.rb Initial commit August 15, 2010
Octocat-spinner-32 rakefile.rb Initial commit August 15, 2010
README.markdown

Heroku APNS

This is a sinatra app for people who want to quickly and easily deploy an APNS server to Heroku

Acknowledgements:

Based on apn_on_rails

Installing:

First, replace the apple_push_notifiation_production.pem with your own .pem file

Next, if you are testing on your local database, create a local-database.yml file based on the template provided and fill in the credentials.

Finally, deploy to Heroku

Usage:

There are three API endpoints:

register

Parameters: token This should be formatted as a single string with no < or spaces.

message

Parameters: token, badge, message

deliver

This should be called by an external cron job because heroku lacks a minute-by-minute cron capability

feedback

This should be called by an external cron job because heroku lacks a minute-by-minute cron capability

Released under the MIT license by Eric Silverberg.

Something went wrong with that request. Please try again.