Search code examples
iosemailpassbook

pkpass won't open on iOS from e-mail attachment


All websites mention that Passbook passes can be sent by e-mail. But when the pass (generated by our server) is attached to an e-mail, the iOS e-mail client won't open it and write "(null)" instead. The same pass works fine on Android and also has no problems communicating with our web service. Any ideas? Google searches didn't offer any solutions.

Screenshot:

enter image description here


Solution

  • Solved: There were multiple problems:

    • The authentication token has to be at least 16 characters long
    • I used the "Apple Inc. Root Certificate" (wrong one) instead of the "AppleWWDRCA" (correct one)
    • For production the web service needs to use https