Received invalid pass data while updating Apple Wallet Pass

半世苍凉 提交于 2019-12-25 09:47:46

问题


I have implemented all 5 endpoints in PHP and all seems working fine. But when I provide updated pass in response to web service Getting the Latest Version of a Pass(GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber) the pass is not updated and in error log I am receiving following error.

{"logs":["[2017-05-24 22:37:50 +0530] Get pass task (pass type pass.com.xxxx.xxxx, serial number 285527, if-modified-since (null); with web service url http://www.xxxx.com/xx/xx/public/pass_api) encountered error: Received invalid pass data (The pass cannot be read because it isn't valid.)"]}

Also I am not sure what to pass in response to Getting the Latest Version of a Pass web service. Whether I should pass updated pass.json or raw file of pass.pkpass or downloadable format of pass.pkpass, because in Apple PassKit Web Service Reference guide its written like If request is authorized, returns HTTP status 200 with a payload of the pass data. So I am not sure what to pass as payload.

All my endpoints and entire code are in PHP.

来源:https://stackoverflow.com/questions/44165482/received-invalid-pass-data-while-updating-apple-wallet-pass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!