Related posts about Passbook:
After introducing Passbook here
, this post will show what is really a passbook pass.
A passbook pass is just a compressed file, a .zip archive, but with a “.pkpass” extension. This compressed pass must be cryptographically signed.
The .pkpass includes 3 necessary files:
The zip archive also contains the images of the pass. The images are included inside the pass using standard names as we will see in another post.
To support localization, the structure of the .pkpass archive changes. For each supported location, it is necessary to create a subfolder to separate the files that depend on the location. For example create a subfolder named “es.lproj” and create a strings file named “pass.strings” that contains the Spanish strings. These strings will be referenced from the pass.
The directory structure: