Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to built and print a scannable Pass for Passbook in iOS7

i can't figure out how to build a OR Code for a Pass that is scannable with the new QR code scanner in iOS7' Passbook App.

When I try to scan a QR Code with a link to a working Pass, the App says it is 'No Pass available for this Card'. Card, hum?!

Any ideas?

like image 960
poolsideDev Avatar asked Sep 30 '13 15:09

poolsideDev


People also ask

How do you make a PKPASS?

Create a pkpass by command line:Create a pass certificate with openssl and pkcs12 hashing type. The Path to . p12 certificate (created in the previous step) goes as input. The output will be the private key which will be stored in a .

Does iPhone 7 have a built in QR scanner?

Open the Camera app from the Home Screen, Control Center, or Lock Screen. Select the rear facing camera. Hold your device so that the QR code appears in the viewfinder in the Camera app. Your device recognizes the QR code and shows a notification.

What is PKPASS file?

PKPASS is a file format, used for storage and exchange of digital passes, developed by Apple for its Wallet application. It's intended to represent information that "might otherwise be printed on small pieces of paper or plastic" like boarding passes, membership cards, coupons, certificates, etc.


2 Answers

For a pass to install, the following criteria have to be met:

  • The link must be https
  • The URL must return a valid .pkpass bundle
  • The Content-Type header must be application/vnd.apple.pkpass

Unfortunately, these requirements are not yet documented, but they are mentioned in the WWDC session What's new in Passbook

like image 64
PassKit Avatar answered Oct 14 '22 21:10

PassKit


The URL contained in the QR code must return a valid PKPASS file and have the correct MIME type in the HTTP response.

Does that help?

like image 29
Tomas McGuinness Avatar answered Oct 14 '22 22:10

Tomas McGuinness