Hi,
I'm using a ASP.Net web application and trying to integrate passbook onto it, so far the code runs and a .pkpass file is created via and returned to the user via:
Response.ContentType = "application/vnd.apple.pkpass";
Response.AddHeader("Content-Length", [byte array containing file].Length.ToString());
Response.AddHeader("Content-Disposition", "attachment;filename=" + FileName+ ".pkpass");
Response.BinaryWrite([byte array containing file]);
Response.Flush();
Prior to this the byte array is built up and signed and after all the execution the .pkpass file is created on our server and it is downloadable though a web browser(tested with FireFox, Chrome and IE evethough on IE it says the file type as pkpass_auto_file) from a PC and it was also checked on a android phone with an emulator for passbook(PassWallet) and the pass open there but on a iPhone(tested with an iPhone6 with iOS 8.3) I get Download failed: Safari cannot download this file.
The source of the download is a link from an email and from there it takes you to the site where the download happens automatically on-click, these changes are not live yet so I cannot provide a link to better illustrate this.
P.S. The pass type I'm creating is an Event one and I changed the .pkpass file to a .zip one and extractedthe contents and the files in there are:
- manifest.json
- pass.json
- signiture
- 4 * .png pictures(2 * logos and 2 * icons)
Please assist with this as I am not quite sure what the problem is exactly