Issue:
Our application is able to add pass into Apple Wallet on iPhone. When the pass needs to be updated, we send push notification to Wallet app. Wallet app pulls the updated pass from our web server. However, it fails to update the card in wallet and sends back following error:
Get pass task (pass type pass.com.gr.grid.mobile.consumer.test, serial number 5d6e5a27, if-modified-since (null); with web service URL https://grid.globalrescue.com/rest/mobile/v1.1/gridmobileconsumer/pass/) encountered error: Received invalid pass data (The pass cannot be read because it isn’t valid.)”
Steps performed:
We were initially returning response header “Content-Type: application/zip”. We also change header to “Content-Type: application/vnd.apple.pkpass”. But it didn’t work.
We also changed pass library from Jpasskit 0.0.9 to Jpasskit 0.4.2 for generating the pass file. But no success.
What could be the possible reason/s?
Abdur Rahman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.