What you get
A ticket that arrives by mail is recognised as a ticket. The event, the venue and the entry time are read from the whole mail. It goes into your calendar once, and it appears under Tickets in the app with the ticket itself one press away.
Add it to Wallet and the pass carries the entry time and the venue’s place. Your phone then brings the ticket up on the lock screen when you are nearly there. The agents do not notify you; the phone does what it does for any pass.
What they will not do
| Store the code | The ticket’s code is read on your own phone, and sent once only to be made into a pass. Neither the code nor the pass is kept. |
| Notify you | The Tickets list has no count, no badge and no notification. It is there when you open it. |
| Put your name on the pass | The pass carries the event, the venue, the time and the order reference. |
| Leave you stuck at the door | If a scanner refuses the pass, the original PDF is always one press away. |
How it is built
A ticket is four things at once: a mail, an entry in your calendar, a file, and a pass on your phone. The work is joining those up without any agent holding the one thing on a ticket that is a secret, the code that lets you in.
So the code is read on your own phone and nowhere else, and the agent’s part is to recognise the ticket, work out when and where, and sign a pass your phone will accept.
One ticket, start to finish
The mail is recognised as a ticket, and read whole.
A ticket outranks a receipt: a ticket with a total on it is still a ticket
A model names the parts as written. Code works out the time.
Event, venue, address, order reference, entry time. The time must be text the mail itself carries, and is resolved on the venue’s clock ·
resolveWhenTender tells Alex, and Alex places it in your calendar, once.
A typed message on the protocol. “Once” is held three ways, so a re-read cannot duplicate it
The ticket’s PDF is lifted into your own Drive, and shown from there.
Streamed to your phone when you open it. Never cached, logged or read by a model
Your phone finds the code on the PDF.
Each page is drawn and searched · Apple’s PDFKit and Vision,
VNDetectBarcodesRequest: QR, PDF417, Aztec, Code 128Your phone finds where the venue is.
Apple’s MapKit, from the venue’s name and address
Tender builds a pass and signs it, and hands it straight back.
An event ticket in Apple’s pass format, signed with my pass certificate ·
pass.json, a manifest, a detached PKCS #7 signature, zipped as.pkpass. Nothing is storedYour phone shows the pass when you are nearly there.
The pass carries the entry time and the venue’s coordinates ·
relevantDate,locations. Wallet does the rest; no agent notifies you
The parts
| Wallet passes | Apple’s format for a ticket or card the phone can show on the lock screen. |
| A Pass Type ID certificate | What proves to your phone that a pass came from me. Held as a secret by Tender alone. |
| PDFKit and Vision | Apple’s own tools on the phone for opening a PDF and finding a code in a picture. |
| MapKit | Apple’s maps, used to turn a venue’s name into a place. |
| aha-time | My shared library that turns “doors 7pm Thursday” into a moment, in code. |
The words, in plain English
| Bearer credential | Something that works for whoever holds it, like a ticket’s code. The reason it is never stored. |
| Signing | A mathematical seal that shows who made a file and that it has not been changed. |
| Relevance | What Wallet calls the time and place at which a pass should come forward. |
| Pulled, not pushed | You open the list to see it. Nothing is sent to get your attention. |
What is not finished
| Scanners | A venue’s scanner may refuse a re-made code, so the original PDF is always one press away. |
| Two tickets, one event | A second ticket for the same event on another day is a second entry, never a move. |
| Gmail only | A ticket has to arrive in a connected Gmail account. |