justdmitry / PassKitHelper

Helper library for all your Apple PassKit (Apple Wallet, Apple Passbook) needs.
MIT License
26 stars 6 forks source link

Any guidance on updating? #13

Closed george-karma closed 2 years ago

george-karma commented 2 years ago

I have everything setup as in the readme but the apple server/device isn't hitting the RegisterDeviceAsync method. Should a webservice url be provided in the pass? And how to do this?

justdmitry commented 2 years ago

Yes, you need to put some data into pass:

pass.WebService
           .WebServiceURL("https://your-server/path")
           .AuthenticationToken("some secret string you can verify it's not hacker")                    
george-karma commented 2 years ago

Does the WebServiceURL have to be any specific path since i did add the callbacks for the passkit helper?

george-karma commented 2 years ago

@justdmitry do you have an example for this? :)

justdmitry commented 2 years ago

If your server URL is https://example.com and you followed readme 3.2 and called app.UsePassKitMiddleware("/callbacks/passkit"); in Startup then you should set in your passes .WebServiceURL("https://example.com/callbacks/passkit")

george-karma commented 2 years ago

Will give it a quick try now thank you

george-karma commented 2 years ago

Still cant figure it out, seems like apple is never calling the callback

justdmitry commented 2 years ago

Calls my server in all 5 or 7 projects. Are you sure you added public URL in cards?

george-karma commented 2 years ago

Tried adding a remote server and local server, just doesn't call the callback. Do you have any public projects you implemented this in, i might be missing something?

justdmitry commented 2 years ago

No, sorry, all commercial.

But it usually works without any problems.

1) Do you have HTTPS on your server? Don't remember about Apple, but some other providers require. 2) Never thought about it, but... do you have "/" at end of your value in WebServiceURL ?

george-karma commented 2 years ago

Didnt use "/" at the end of the WebServiceURL. The Get GetAssociatedPassesAsync method was not quering my CRM properly. Thanks for your help on this @justdmitry . Hope you have a good day : )