Mobile Line Of Business

Richard Jones (MVP)

  Home  |   Contact  |   Syndication    |   Login
  202 Posts | 0 Stories | 36 Comments | 0 Trackbacks


Welcome to the Mobile Line Of Business Blog

Tag Cloud


Post Categories



So before we talked about the potential of building a server to issue and maintain Passbook passes.   The design goal to being able to issue boarding passes, concert tickets, etc. to iOS devices.

The starting point is to build a template pass that we can substitute (mail merge style),   the values that we need for our pass.   i.e to change the attendee name on each visitor pass we issue.

A passbook pass is essentially a ZIP achieve file digitally signed.    The  content of the pass is maintained with a fairly simple JSON fill,  named pass.json.   We’ll use this file as our foundation.

This is my proposed format that our server will use to build up our passes -

        {"longitude":-122.3748889, "latitude":37.6189722}
    ,"barcode" : {
        ,"format" : "PKBarcodeFormatPDF417"
        ,"messageEncoding" : "iso-8859-1"
    ,"logoText" : "Sun Airways","foregroundColor" : "rgb(22, 55, 110)","backgroundColor" : "rgb(50, 91, 185)"

         "transitType" : "PKTransitTypeAir"

    ,"organizationName" : "Richard Jones"
    ,"formatVersion": 1
    ,"passTypeIdentifier" : ""
    ,"webServiceURL" : "https:\/\/\/passhandler\/"
    ,"authenticationToken" : "12345678901234567890123456789012"
    ,"teamIdentifier" : "D3ZDFF92AK"
    ,"description" : "Boarding Pass"
My servers role will be to issue passes by substituting any variable that begins $$ into the pass body.
We will be using all Microsoft ‘stuff’ for the backend server;  so this is a good example of end-to-end integration.
posted on Tuesday, July 24, 2012 10:15 AM


# re: Part 1–PassBook Server 7/25/2012 8:13 AM sma3idiot
Great post, thanks for sharing

Post A Comment