i have added pass via mail wallet. see pass in wallet app, i'm unable see updated pass when pull refresh @ backside of pass. here logs:
passd[119] <warning>: verifying structure , signature pass pass.com.test.pass/1 passd[119] <warning>: signature validation: succeeded passd[119] <warning>: generating post request url <my_https_url/api/passregistration/v1/devices/70e435342e38df4e4346e779c6dff6e3/registrations/pass.com.test.pass/%25e2%2580%258e1> passd[119] <warning>: request contains header field <authorization: applepass my_token> passd[119] <warning>: request contains body dictionary { pushtoken = 93b5d5cxxxxxxxxxxxxxxxxxxxxxxxxxxx_similar; } passd[119] <warning>: register task (for device 70e435342e38df4e4346e779c6dff6e3, pass type pass.com.test.pass, serial number 1; web service url my_https_url/api/passregistration/) got response code 201 passd[119] <warning>: generating request url <my_https_url/api/passregistration/v1/devices/70e435342e38df4e4346e779c6dff6e3/registrations/pass.com.test.pass> passd[119] <warning>: serial #s task (for device 70e435342e38df4e4346e779c6dff6e3, pass type pass.com.test.pass, last updated (null); web service url my_https_url/api/passregistration/) got response code 200 passd[119] <warning>: serial numbers task completed update tag 1459943482, serial numbers ( 1 ) passd[119] <warning>: pass task (pass type pass.com.test.pass, serial number 1, if-modified-since (null); web service url my_https_urlapi/passregistration/) got response code 200 passd[119] <warning>: verifying structure , signature pass pass.com.test.pass/1 passd[119] <warning>: signature validation: succeeded passd[119] <warning>: pass task (pass type pass.com.test.pass, serial number 1, if-modified-since (null); web service url my_https_url/api/passregistration/) encountered error: requested serial number 1, received serial number 1 passd[119] <warning>: pass task (pass type pass.com.test.pass, serial number 1, if-modified-since (null); web service url my_https_url/api/passregistration/) retry after 60 seconds
some portion of pass looks this:
"storecard": { "headerfields": [ { "key": "lessons", "label": "points", "value": "200" } ],
on update web service call, passed same pass in binary format points value 500. expected output show points 500 instead of 200. see "couldn't update pass" message once refreshing done. testing in iphone4s ios 9.2.1.
the method binaryformatter()
didn't work changed binarymediatypeformatter()
per reference https://github.com/horizon-institute/affectivecomputingcloud/blob/master/affectivecomputingcloud/restapiwebrole/formatter/binarymediatypeformatter.cs
i tried following header parameters:
response.content.headers.contenttype = new mediatypeheadervalue("application/vnd.apple.pkpass"); response.content.headers.lastmodified = datetime.utcnow; response.content.headers.contentdisposition = new contentdispositionheadervalue("attachment"); response.content.headers.contentdisposition.filename = "pass.pkpass"; response.content.headers.contentdisposition.name = "pass.pkpass";
there seems multiple issues wrong content-type. changing content type application/vnd.apple.pkpass
, passing updated pass updated date fixed issue.
Comments
Post a Comment