i try to implement passbook/wallet to our ticketshop.
so far i can add passes to my iphone, they show up in wallet. i get notification on the homescreen when time and/or location is reached.
i have setup a webservice on my server. registration of passes work. i can see them in my database.
my webservice will register, list serials, get lastversion, delete and logs
manual update of a pass works in wallet. but what i don't get to work is the automatic update via apple push notification.
here is what i do:
i send a message to apns with the pushToken. i then see my iphone do a call to
webServiceURL/v1/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier
my webservice will answer this call with a list of passes registered with my device, eg:
{ lastUpdate: '1451489425', serialNumbers: ['1ee57da447f8656d4d631f14b00d8ed2','abcdefg447f8656d4d631f14b00d8ed2' ]}
in this example i have two different passes on my iphone. they have different authTokens, serials.
so my iphone seems to ghet the serials of the passes but then nothing is happening any more...
lastUpdate is just a timestamp when the call was performed, right? i do not see the parameter
passesUpdatedSince
as far as i thought, now should my iphone/wallet check for updates. but i do not see any call to:
webServiceURL/v1/passes/passTypeIdentifier/serialNumber
what is wrong? when does wallet gets the latest version? are the headers important? at the moment i just would send a new pkpass-file to my iphone when the webservice would be/is called. i do not send a 304 or last-modified-since value. the update is a manual task. update pass.json with changeMessage, generate pkpass-file, call the apns and wait...
i do not see any error-logs, my webservice is not called with /log for error logging.
thank you
markus