Slide 7
Slide 7 text
Postgres at Urban Airship by Adam Lowry - Postgres Open, 2011-09-16
Device tokens
B4860531CD04E9D294CA0E8F209179CB006B79235C7C1CCD110B364A0658BEBF
• 32 Bytes
• Same for multiple apps on the same device, but different
metadata
• Application ID, token, active?, created, alias, tags
To provide a frame of reference for what we were working with, here’s a
device token.
A device token is the unique identifier for Apple’s push notification
system. It’s 32 Bytes, and on an installation of iOS it’s the same for
different apps.
For us we stored in a row with the application ID, whether it’s active or
not (that is, can we send to it without violating Apple’s rules?), and
various other bits of metadata like alias, created timestamp, and a many-
to-many relationship for any tags applied to the DT by the application.