Unable to download a passbook file .pkpass on iPhone (Safari)
<p>I've got a link on a web page that should enable users to download a passbook file from a link, however when clicking on the link in Safari on an iPhone, I get the following error message:</p>

<pre><code>Safari cannot download this file.
</code></pre>

<p>I have read similar Q&amp;As on here, and the MIME type is set to <code>application/vnd.apple.pkpass</code>. The passbook can be downloaded on a Windows phone.</p>

<p>Any suggestions on why this is the case and how to resolve this so users can access the passbook file?</p>

<p>I've downloaded the passbook on a desktop and this is what it contains.</p>

<p>The pkpass contains the following files:</p>

<pre><code>icon.png
logo.png
strip.png
manifest.json
pass.json
signature
</code></pre>

<p>An example of the manifest.json:</p>

<pre><code>{
  "icon.png": "fa6b59072ae5c8163c903d8c8b5f2e4a45fbd49b",
  "logo.png": "3165c9be22cbf76e2b3118972dabaef8918390f5",
  "strip.png": "5d15c45f543e8088c227fc54a6c01d1f9f0b1db3",
  "pass.json": "0f536b34a6b73a7799aae43ff9861dde45a6dfc6"
}
</code></pre>

<p>An example of the pass.json:</p>

<pre><code>{
    "passTypeIdentifier":"pass.com.XXXX.sampleticket",
    "formatVersion":1,
    "serialNumber":"TIC1000000518",
    "description":"XXXX",
    "organizationName":"XXXX",
    "teamIdentifier":"W9XR4FBDD4",
    "logoText":"Dragon Bay",
    "foregroundColor":"rgb(0,0,0)",
    "backgroundColor":"rgb(255,255,0)",
    "labelColor":"rgb(0,0,0)",
    "eventTicket":{
        "headerFields":[],
        "primaryFields":[],
        "secondaryFields":[{"key":"activity",
            "label":"11/20/2015 12:00 AM",
            "value":"One Day at the Museum"
            }],
        "auxiliaryFields":[],
        "backFields":[{
            "key":"terms",
            "label":"Terms &amp; Conditions",
            "value":"XXXX"
        },
        {
            "key":"contact",
            "label":"XXXX",
            "value":"XXXX"
        },
        {
            "key":"legal",
            "label":"Legal",
            "value":"XXXX"
        },
        {
            "key":"notes",
            "changeMessage":"%@","label":"Notes","value":""
        },
        {
            "key":"lastUpdated",
            "label":"Last Updated",
            "dateStyle":"PKDateStyleMedium",
            "timeStyle":"PKDateStyleShort",
            "isRelative":false,
            "value":"2016-01-08T19:00Z"
        }]
    },
    "barcode":{
        "format":"PKBarcodeFormatPDF417",
        "message":"1000000518",
        "messageEncoding":"UTF-8",
        "altText":"1000000518"
    },
    "authenticationToken":"0123456789ABCDEF",
    "webServiceURL":"https://XXXX/passbook.svc"
}
</code></pre>

<p>I had a <a href="https://stackoverflow.com/questions/34694542/safari-cannot-download-passbook-file-pkpass">similar issue before</a> which I resolved by ensuring the webServiceURL was https, however that is the case in this scenario.</p>