Reputation: 277
I have successfully integrated passkit but I am facing issue when updating passbook via push notification. Notification successfully received to wallet but pass not updated.
Following are steps which I have implemented:
Here is my full code (PHP + SWIFT): https://www.dropbox.com/sh/e3wk8bwqgv8zs3f/AACZa_x7vD8KByl6WdrrgNExa?dl=0
Here are some logs:
The error is Server response was malformed...
Please help!
Thanks!
Upvotes: 3
Views: 2118
Reputation: 277
I have solved this my self. The problem was in 'Last-Modified' header date format.
It should be header('Last-Modified: ' . gmdate('D, d M Y H:i:s T'));
in PKPass.php file
I received push notification and my pass is now updated automatically.
Thanks!
Upvotes: 1