1

https://i.sstatic.net/K81uU.png

you can see the pic,there is a open button,the pic is passbook pass,i do not find any api or pass attribute to finish it. at the pass.json

"backFields" : [
 {
 "key" : "extras",
 "label" : "Discount",
 "value" : "Your friends receive 50% off price"
 },
 {
 "key" : "phone",
 "label" : "Phone",
 "value" : "800-1234567890"
 },
 {
 "key" : "date",
 "label" : "Valid time:",
 "dateStyle" : "PKDateStyleMedium", 
 "timeStyle" : "PKDateStyleNone", 
 "value" : "2013-01-03T00:00Z"
 },
 {
 "key" : "terms",
 "label" : "TERMS AND CONDITIONS",
 "value" : "Lessons must be used between 1/1/2013 and 3/1/2013. Appointments for lessons must be made no less than 48 hours in advance. Customer must be able to swim."
 }
]

i am not find other key or label to finish it. can you help me

asked Jan 10, 2013 at 5:02

1 Answer 1

3

If you want to add link to your application, I believe you should use the associatedStoreIdentifiers top-level key.

Optional. A list of iTunes Store item identifiers (also known as Adam IDs) for the associated apps. Only one item in the list is used—the first item identifier for an app compatible with the current device. If the app is not installed, the link opens the App Store and shows the app. If the app is already installed, the link launches the app.

http://developer.apple.com/library/ios/#documentation/userexperience/Reference/PassKit_Bundle/Chapters/TopLevel.html

answered Jan 10, 2013 at 7:58
Sign up to request clarification or add additional context in comments.

1 Comment

Note that the associatedStoreIdentifiers key needs to be provided as a top level key (not inside the backfields array) and that the Adam ID needs to be provided as an integer and enclosed in an array, even if there is just one Adam ID. Example: "associatedStoreIdentifiers":[123456789]

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.