Skip to Content
Platform.Ontology

DeviceCheck two bits

Apple stores two bits per device per developer on its servers.

Used to track youSign in and identityAttestationAndroid and iPhoneWhen you are signed inAfter you uninstall

In one line

Can store two yes or no flags about your device on Apple's servers

Apple stores two bits per device per developer on its servers.

Lets a developer mark a device (for example, trial used) with 2 bits that persist across reinstall and device wipe; no other data.

What it can and can't do

What the user does: Nothing. It happens when the app's server asks Apple about your device

It can

  • Set or look up 2 bits on Apple's servers for this device and this developer
  • Remember a device was flagged (for example, a used free trial) even after you reinstall
  • Learn the month the bits were last changed

It cannot

  • Store anything beyond 2 bits and a date
  • Share the bits with other developers
  • See your Apple ID, name or any personal detail
  • Work on Android; there is no equivalent

How it differs between platforms: Only iPhone has DeviceCheck. Android gives integrity verdicts but no storage.

On Android and iPhone

AndroidiPhone
StatusNot supportedSupported
First versionNot availableiOS 11.0
Permission or entitlementnonenone
Protection levelnot-exposednone
How access is grantednot-exposednone
What the user seesNot listedNot listed
How long it lastsNot listedCannot be cleared by the user
How to take it backNot listedApp Review: fraud prevention use
Store policyNone listedNone listed
APINo equivalent2 bits plus last update month; per developer account; server to server with an Apple key
NotesPlay Integrity gives verdicts, not storageSurvives reinstall

Data you get

What comes back: 2 bits
Shape: binary
How often: On server call

FieldTypeUnitRangePrecision
bit0booleanNonetrue, false1 bit
bit1booleanNonetrue, false1 bit

Technical limits

  • Server only
  • 2 bits max

The story

What it is

Apple lets an app store two private yes or no flags about your phone on its servers.

For you

You never see it. It can mean that if you used a free trial once, the app may still know after you delete it and reinstall. You cannot clear it yourself.

For makers

Makers use these two bits to stop people from claiming a free trial again and again, or to mark a phone that abused a promo. It survives reinstall and even a wipe of the device, which is why it works so well for abuse control.

Where you see it

TypeExampleApps
mediaA music streaming app marks your phone when you finish a free trial so a new email cannot get another one.Spotify
gamesA mobile game flags a phone that abused a gift code so the same phone cannot claim it again on a new account.None named
datingA dating app remembers that a phone was banned for harassment, so a fresh profile does not slip through.None named
shoppingA store limits a welcome coupon to one claim per phone even after an app reinstall.None named
adsAn ad network flags a device that produced fake installs, then discounts its traffic.None named
securityA bank app marks a phone used in a known scam so later sign ins from it get extra checks.None named

Risks

  • Mark survives reinstall
  • Hard to clear or see

Android and iPhone in short

  • Android: Android has no exact twin. Developers use Play Integrity and server side checks instead.
  • iPhone: This is Apple only. Each developer gets its own two bits per device, so it cannot link different developers.

What the platform says

  • Apple: DeviceCheck. Apple offers two bits per device so developers can remember simple things like a used free trial.

Good uses and abuse

Legitimate uses

  • Trial abuse prevention

Known abuse

  • Persistent mark

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

History

  • 2017-09, iPhone iOS 11: DeviceCheck introduced
  • App Attest. Can prove its requests come from the real app on a real iPhone

Sources

How well checked: Based on official documentation.

On this page