M.A
M.A

Reputation: 478

Apple Wallet update values dynamically

i have already created static version of coupon in apple device. now im want to update my new values directly on my coupon card, when value update in my database via API call.

i know this is possible just like boarding pass when seat number change it directly change on e-boarding pass.

please guys if you can provide good example links how to call API and how to fetches values from API and update coupon, it will be great help.

Note: My API will not be in objective-C.

Thanks

Upvotes: 1

Views: 7408

Answers (2)

yzhou5
yzhou5

Reputation: 123

I wrote an article about how to write the web services for apple wallet here: https://medium.com/@yangzhoupostbox/asp-net-web-api-example-for-apple-wallet-passbook-a124a1d90bb3

Upvotes: 4

Vineet Ravi
Vineet Ravi

Reputation: 1486

You need to implement Apple pass creation, distribution and updation code in your backend solution. Find the following references and documentations:

Apple Pass for JAVA backend :

https://github.com/drallgood/jpasskit
https://dzone.com/articles/ios-and-android-push
http://www.ryantenney.com/passkit4j/

Apple Pass Web URL specs:

https://developer.apple.com/library/content/documentation/PassKit/Reference/PassKit_WebService/WebService.html

Apple Pass for PHP backend :

https://github.com/tschoffelen/PHP-PKPass

Apple Pass with Ruby

https://oleb.net/blog/2013/02/passbook-tutorial/

APNS with Node.js :

https://solarianprogrammer.com/2017/02/14/ios-remote-push-notifications-nodejs-backend/

Push notification for updating iOS Pass :

https://stackoverflow.com/questions/15877496/how-to-make-a-push-notification-for-a-pass

Pass Kit Web Service Reference: https://developer.apple.com/library/content/documentation/PassKit/Reference/PassKit_WebService/WebService.html

Important Note : If you are using any JAVA JAR, please check which server OS you are using, like IBM AIX OS (uses IBMX509) or Oracle OS (used SUNX509). Many libraries of Apple pass in JAVA is available which only support SUN JDK. You can land up into huge trouble in the last moment, if your server is AIX OS and JAR is using SUN. For Eg: jPassKit JAR from https://github.com/drallgood/jpasskit only supports SUN JDK, so you can't use this for IBM AIX OS server.

Upvotes: 4

Related Questions