poornerd

my thoughts on programming and other nerdy stuff

Demo generating iOS Passbook Pass with passkit4j and Play! Framework

| 2 Comments

screenshotI recently stum­bled across passkit4j with which it is not that hard to cre­ate a Pass­book pass — assum­ing you have an Apple Devel­oper Account, and can fig­ure how to do the whole pro­vi­sion­ing and adding the Key to your key­store (more on that here).

I fol­lowed the exam­ple from passkit4j (and dis­cov­ered a bug in it while try­ing to get the pass onto my iphone).  TIP: use the iPhone Sim­u­la­tor and look at the logs for errors when try­ing to load the pass!

I cre­ated a sim­ple Play! Frame­work 2.0.4 project to gen­er­ate the pass from a webapp.

If you want to try it out, this is all you need to do:

  1. check­out passbook-test from github
  2. get your Pro­vi­sion­ing File and Cer­ti­fictes from your Apple Devel­oper Account and add them to your key­store:https://​github​.com/​r​y​a​n​t​e​n​n​e​y​/​p​a​s​s​k​i​t4j
  3. add then infor­ma­tion about the pro­vi­sion­ing and cer­tifi­cate files to the application.conf
  4. play run
If you have read this far, you may as well fol­low me on Twit­ter:

Author: poornerd

Tech­nol­o­gist, Entre­pre­neur, Vision­ary, Pro­gram­mer :: Grad­u­ated from USC (Uni­ver­sity of South­ern Cal­i­for­nia) with a degree in Com­puter Sci­ence. After 10+ years of free­lance con­sult­ing and pro­gram­ming, he co-founded Site­Force AG eBusi­ness Solu­tions in 1999 in Munich (München), Ger­many.

2 Comments

  1. I am work­ing get­ting this hosted at Cloud­bees, but still hav­ing trou­ble gen­er­at­ing the tem­po­rary files. Stay tuned — maybe I’ll get it working…

  2. hi,

    Use­ful post, we found the Team Iden­ti­fier as the stum­bling block. For­got to include that. Once we did that it worked locally but not on Cloudbees.

    Were you able to get this work­ing on Cloud­bees ? I have requested sup­port from them, but just wondering.

    Thanks

Leave a Reply

Required fields are marked *.