I recently stumbled across passkit4j with which it is not that hard to create a Passbook pass — assuming you have an Apple Developer Account, and can figure how to do the whole provisioning and adding the Key to your keystore (more on that here).
I followed the example from passkit4j (and discovered a bug in it while trying to get the pass onto my iphone). TIP: use the iPhone Simulator and look at the logs for errors when trying to load the pass!
I created a simple Play! Framework 2.0.4 project to generate the pass from a webapp.
If you want to try it out, this is all you need to do:
- checkout passbook-test from github
- get your Provisioning File and Certifictes from your Apple Developer Account and add them to your keystore:https://github.com/ryantenney/passkit4j
- add then information about the provisioning and certificate files to the application.conf
- play run