Hi all,
I've written the endpoint that returns a list of updatable passes serial numbers as outlined in this documentation:
https://developer.apple.com/documentation/walletpasses/get_the_list_of_updatable_passes
When I send the apns request to my phone (using push token, pass identifier and certificate) my phone reaches this endpoint and receives a list of serialnumbers it has that can be updated.
return new JsonResponse([ 'serialNumbers' => $serialNumbers, 'lastUpdated' => Now::getTimestamp() ], Codes::HTTP_OK);
Serial numbers is the array containing the correct numbers from the database.
I have another endpoint that sends the correct passes back to the phone. I can see this by pulling down and force updating the pass - the endpoint is hit, sends the new pass and the pass updates on the phone.
The problem is that my phone won't call the second endpoint automatically when it receives the list of passes back - it only updates when I force it too. This means the route must be correct I believe.
The pass also has Automatic Updates turned on.
Am I missing something? Is the response malformed or something?
Thanks in advance :)