Skip to Content
Platform.Ontology

Barometer and altitude

Reads air pressure; iOS needs Motion and Fitness permission for relative altitude.

Gets silentlyLocation and motionMotionAndroid and iPhoneWhile you use it

In one line

Can measure air pressure and height change, after a Motion prompt on iPhone

Reads air pressure; iOS needs Motion and Fitness permission for relative altitude.

Pressure reveals floor in a building and weather; combined with time it can aid location inference.

What it can and can't do

What the user does: Nothing on Android. On iPhone you tap Allow for Motion and Fitness

It can

  • Measure air pressure in hectopascals (Android) or kilopascals (iPhone)
  • Track relative altitude change, such as climbing stairs, on iPhone
  • Help estimate floors or weather trends

It cannot

  • See your exact altitude above sea level without extra data
  • See your location
  • Use the sensor on iPhone without Motion and Fitness permission

How it differs between platforms: Android gives pressure with no prompt. iPhone gives relative altitude and needs Motion and Fitness.

On Android and iPhone

AndroidiPhone
StatusSupportedPartial
First versionAndroid 2.3 (API 9)iOS 8.0
Permission or entitlementNot listedprompt
Protection levelnoneprompt
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_PRESSURERelative altitude in meters, pressure in kPa; needs Motion and Fitness
NotesHectopascals, 300 to 1100None

Data you get

What comes back: Pressure
Shape: float
How often: Up to 25 Hz

FieldTypeUnitRangePrecision
pressurefloathPa300 to 1100about 0.1 hPa

Technical limits

  • Present on most phones, not all

The story

What it is

An app can read air pressure, which shows weather changes and which floor you are on.

For you

You do not see it. Fitness apps may show floors climbed, and emergency calls can use it to tell which floor you are on. It also reveals weather changes and moving up and down in a building.

For makers

Makers use it to count flights of stairs, improve indoor location and give weather clues. It can also help narrow down location when combined with time and other signals.

Where you see it

TypeExampleApps
fitnessA step counter adds floors climbed when you take the stairs.Apple Health, Fitbit
mapsAn indoor map app finds which floor of a mall you are on.Google Maps
healthA hiking app tracks elevation gain on a trail.AllTrails, Gaia GPS
utilitiesA weather app uses pressure from many phones to improve local forecasts.None named
gamesAn outdoor game notices that you climbed a hill and gives a reward for the real world climb.None named
securityAn emergency location system reads pressure to tell dispatchers which floor to send help.None named

Risks

  • Location inference
  • Weak fingerprint bit

Android and iPhone in short

  • Android: Android reads the pressure sensor with no prompt on phones that have one.
  • iPhone: iPhone relative altitude needs Motion and Fitness permission.

What the platform says

  • Google: Pressure sensor. Android lets apps read air pressure to track weather and altitude.
  • Apple: Altimeter. Apple's altimeter gives relative height changes from the barometer, like floors climbed.

Good uses and abuse

Legitimate uses

  • Floor detection

Known abuse

  • Location inference

Scores

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

Sources

How well checked: Based on official documentation.

On this page