Jason
Jason

Reputation: 1067

sending PKPAss to Safari with PHP

All,

I am following a tutorial to get PHP to deliver a pass. I have been using the console to check the logs in XCODE. I have also checked and there is no PHP errors on the local server.

When I browse to the page which should download the pass, I get this on my safari screen on my iPhone.

enter image description here

So it is downloading from the local server, but I cannot see the pass, just the binary code.. Is there anything on iPhone 6/ iOS 8 that I should be checking ?

thanks

Upvotes: 1

Views: 515

Answers (1)

PassKit
PassKit

Reputation: 12581

Your web server is not correctly set up to serve the file with a MIME type that identifies the .pkpass file as a Passbook pass. More so, your server appears to be using a text or html MIME type that instructs the browser to read the file as text.

See my answer to this question for how to properly configure your server.

Upvotes: 1

Related Questions