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

Alex picture Alex · Nov 20, 2013 · Viewed 13.7k times · Source

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

Answer

Alex picture Alex · Nov 21, 2013

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