I am trying to create a pass for Passbook. I have it all set up with the JSON file and the images, and the pass looks great. However when I scan the code the iPhone says "No pass available for this code". I have added my pass.pkpass on Amazon server but it doesn't work. This is part of the JSON file:
"barcode" : {
"message" : "https://s3.amazonaws.com/folderPass/pass.pkpass",
"format" : "PKBarcodeFormatPDF417",
"messageEncoding" : "iso-8859-1"
},
Don't try it as it is not on at the moment. Anyway my folderPass access is "everyone", and when it was on I tried accessing the link from another Browser not logged in to amazon and it does download the file, so it seams that the permissions are right. Any ideas?
Your pass needs to be served in a way that it is "scannable".
See this queston for the criteria. How to built and print a scannable Pass for Passbook in iOS7
For S3, edit the Content-Type header to read application/vnd.apple.pkpass
Update
Your pass is not valid because it does not contain an icon.
Jun 28 21:08:59 pfr MobileSafari[1870] <Warning>: Invalid data error reading pass pass.com.Ugo.Rietmann/5930493008. Pass does not contain icon.png/icon@2x.png/icon@3x.png
Jun 28 21:08:59 pfr MobileSafari[1870] <Warning>: PassBook Pass download failed: The pass cannot be read because it isn’t valid.
Add an icon.png to your .pkpass bundle and you should find that the pass loads.