I have created an coupon.pkpass, how do I test my coupon at simulator passbook? I want to know that my coupon is created successful or not.
Thank you.
Go through these Passbook tutorials from Raywenderlich, may help you
Will also explain you how you can make use of it in real life time.
The simplest way is to drag the .pkpass bundle from finder into the Simulator.
To get a .pkpass bundle to display on the Simulator via Safari, you will need to serve it via a web server with a MIME type of application/vnd.apple.pkpass
.
Since OSX ships with Apache built in you can drop the .pkpass file in your ~/Sites folder and access it via Safari on the simulator at http://localhost/~yourUsername/your.pkpass
This site gives a step by step guide for how to get Apache up and running with Mountain Lion.
To add the .pkpass MIME type you'll need to add the following line to /etc/apache2/mime.types
application/vnd.apple.pkpass .pkpass
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.