Skip to Content
Platform.Ontology

Proximity sensor

Android reads the distance; iOS gives only a near or far boolean.

Gets silentlyLocation and motionMotionAndroid and iPhoneWhile you use it

In one line

Can tell if something is close to the screen, such as your ear

Android reads the distance; iOS gives only a near or far boolean.

Shows the phone is at the ear or in a pocket. Low value as an ID.

What it can and can't do

What the user does: Nothing. It happens when you hold the phone to your ear on a call or voice message

It can

  • Check if the phone is near your face
  • Turn off the screen during calls
  • On some Android phones, get a distance in centimeters

It cannot

  • Get a distance on iPhone; only near or far
  • See what is near the phone
  • Follow you around

How it differs between platforms: iPhone gives only near or far. Android is often near or far but some phones give a distance.

On Android and iPhone

AndroidiPhone
StatusSupportedSupported
First versionAndroid 1.5 (API 3)iOS 3.0
Permission or entitlementNot listednone
Protection levelnonenone
How access is grantednonenone
What the user seesNot listedNot listed
How long it lastsNot listedNot listed
How to take it backNot listedNot listed
Store policyNone listedNone listed
APISensor.TYPE_PROXIMITYBoolean only
NotesOften binary (0 or 5 cm), some devices return distanceNone

Data you get

What comes back: Near or far
Shape: boolean
How often: On change

FieldTypeUnitRangePrecision
nearbooleanNonetrue, false1 bit

Technical limits

  • iOS has no distance

The story

What it is

An app can sense when something, like your face, is close to the top of the phone.

For you

You notice it only during calls: when the phone touches your ear, the screen goes dark so your cheek cannot hang up. It can also tell that the phone is in your pocket.

For makers

Makers use it to switch off the screen during voice calls and voice notes. It has little value for tracking, except to guess that a phone is in a pocket or bag.

Where you see it

TypeExampleApps
messagingA chat app turns the screen off when you hold the phone to your ear to hear a voice note.WhatsApp, Telegram
videoA video call app turns the screen off during an audio only call.Zoom, FaceTime
accessibilityA hands free app uses a wave over the sensor to answer or silence a call.None named
gamesA gesture game lets you wave a hand over the phone to trigger an action.None named
securityA phone tracker app guesses that the phone is in a pocket to decide whether to ring louder.None named
healthA sleep tracker pauses buzzing when the phone is covered under a pillow.None named

Risks

  • Low privacy risk
  • Pocket detection

Android and iPhone in short

  • Android: Android apps can read a distance value, though many phones only give near or far.
  • iPhone: iPhone apps only get a near or far yes or no, and must turn it on first.

What the platform says

Good uses and abuse

Legitimate uses

  • Screen off during calls

Known abuse

  • Little

Scores

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

Sources

How well checked: Based on official documentation.

On this page