Skip to content

Instantly share code, notes, and snippets.

@rmosolgo
Last active October 8, 2015 18:50
Show Gist options
  • Select an option

  • Save rmosolgo/064f2e7c352fd6136b70 to your computer and use it in GitHub Desktop.

Select an option

Save rmosolgo/064f2e7c352fd6136b70 to your computer and use it in GitHub Desktop.
Passbook flow
_____ ___ __ __ ____ _____ _____ __ __
||_// ||=|| (( (( ||=) (( )) (( )) ||<<
|| || || \_)) \_)) ||_)) \\_// \\_// || \\
_____ _____
|- == | .-,( ),-. |-----|
|Web | .-( )-. | iOS |
| App| ( Apple Server ) | |
| | '-( ).-' |-----|
'-----' '-.( ).-' `--°--'
__ ____ _____ __ ___ __ __ __
/ /`_ | |_ | | / /\ | |_) / /\ ( (` ( (`
\_\_/ |_|__ |_| /_/--\ |_| /_/--\ _)_) _)_)
Generate signed
.zip file
|
`-----------(✉ email)-------> Add to
Wallet
|
Register <------------/
with Apple
|
,---------------/
V
Save the
Apple device ID
... ◴ ◵ ◶ ◷ ...
___ _ __ _ _ ___ ___ __ _____ ____ __
| |_) | | | ( (` | |_| | | | | |_) | | \ / /\ | | | |_ ( (`
|_| \_\_/ _)_) |_| | \_\_/ |_| |_|_/ /_/--\ |_| |_|__ _)_)
Info is updated
|
`--(HTTP POST ✍)---.
V
Enqueue Push
|
`--------------> Buzz!
... ◴ ◵ ◶ ◷ ...
_ _ __ _ ___ __ __ ___ _ ___ ____
| | | | |\ | ( (` | | | | |_) ( (` / /` | |_) | | | |_) | |_
\_\_/ |_| \| _)_) \_\_/ |_|_) _)_) \_\_, |_| \ |_| |_|_) |_|__
✗ No thanks
|
,-----------------/
V
Register the
removal
|
,--(HTTP DELETE ✍)---/
V
Remove the
registration
from the DB
- stop sending pushes
- might be registered
on multiple devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment