问题
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