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

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 .gems
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 config.ru
Octocat-spinner-32 index.rb
Octocat-spinner-32 rakefile.rb
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.