tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
908 stars 187 forks source link

WebServiceURL #85

Closed Shafiullahbug closed 5 years ago

Shafiullahbug commented 5 years ago

I have a question is there an example code for updating of pass. As soon as I try to insert a weserviceurl into the pass the pass is not recognised by the wallet app.

tschoffelen commented 5 years ago

We don’t have an example on how to do that right now.

I would suggest the following to troubleshoot this:

tschoffelen commented 5 years ago

Any luck figuring this out @Shafiullahbug?

Shafiullahbug commented 5 years ago

Hey @tschoffelen Thanks for your reply ....... Not yet but I will start working on it from Monday and will update you once done ....... I should be able to do it have a lot on my plate so havent been able to work on this .....

zloadmin commented 5 years ago
screenshot at jan 18 7-03-43 pm

You have to add:

"webServiceURL" => "https://your_domian", // only https
"authenticationToken" => "your_token",
reynoldspaul commented 5 years ago

Hi @zloadmin , I am adding webServiceURL and authenticationToken, and the pass gets created and successfully added to iOS wallet on iPhone.

But my webServiceURL is not getting hit when the pass is added on the iPhone - I've set up the URL to log request data, so I can inspect what apple sends. It is https, of form domain.com/passbook-update

I am using the cert to generate the pass as per the readme of this repo. Not sure what I am doing wrong, any ideas would be welcome. I've looked at the console log of the iPhone but no errors.

UPDATE: my setup is correct, the webserver is being hit by apple. My app was not configured with the right routes. Correct webserver spec here: https://developer.apple.com/library/archive/documentation/PassKit/Reference/PassKit_WebService/WebService.html

tschoffelen commented 5 years ago

If anyone wants to open a PR to contribute any of this info to the README, that would be super helpful.

Closing this issue right now, since the actual server implementation of push isn't really within the scope of this repo right now.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.