Barcode Identification

To display a barcode on the pass, provide a message, a barcode format, and a message encoding parameter. Optionally, provide an alternative text parameter that will display a human-readable version of the message.

"barcode" : {  "message" : "123456789",  "format" : "PKBarcodeFormatQR",  "messageEncoding" : "iso-8859-1"  "altText" : "123456789",},

The fields used to display a barcode are:

Image format (required): A string representing a PassKit constant specifying the barcode format the barcode should be displayed in. Passbook currently supports QR (PKBarcodeFormatQR), PDF 417 (PKBarcodeFormatPDF417 ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.