A Ruby/Sinatra app that serves for iOS Passbook pass generation and pass updation through push notifications.
-
Clone the app
git clone https://github.com/avinoth/passbook-sinatra -
Create
certificatesfolder and add the following certificates to it,p12_certificate.pem p12_key.pem wwdr.pem push_notification_certificate.pem -
Run
bundle install -
Run
rake db:create && rake db:migrate -
Start the server
ruby app.rb
/passbooks - POST - JSON with pass details in body
To create Pass. Returns pass.pkpass file
/passbooks/update - POST - JSON with pass details in body
To update pass and send push notification for registered devices if pass is already present.
And other passbook server standard endpoitns that Apple / Device will use.