Apple wallet discount Personalized coupon dynamic serial number/barcode

542 views Asked by At

I working on apple "passkit" framework. I already build lolipop coupon as it saying in guide. - Created Certificate (Apple Dev Website) i already compiled .pkpass.

Now i have to build coupon with dynamic barcode/serial number (Personalized). I'm not able to figure out how can i inject my dynamic code in json because, whenever i do any changes in pass.json i have to compile ./signpass -p myfolder.pass to see changes.

Please advice.

1

There are 1 answers

2
Yuk_dev On BEST ANSWER

If you want to dynamic code in pass.json, you need to create a Web API for pass update, you may refer to here. For more easy to develop or maintenance, you may update pass in every user request (just using http action result return a .pkpass file and status code 200)

I hope the following URL is helpful for you to understand how apple pass work:

http://www.raywenderlich.com/20734/beginning-passbook-part-1
https://www.raywenderlich.com/20785/beginning-passbook-in-ios-6-part-22
https://developer.xamarin.com/guides/ios/platform_features/introduction_to_passkit