Barometer and altitude
Reads air pressure; iOS needs Motion and Fitness permission for relative altitude.
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
| Android | iPhone | |
|---|---|---|
| Status | Supported | Partial |
| First version | Android 2.3 (API 9) | iOS 8.0 |
| Permission or entitlement | Not listed | prompt |
| Protection level | none | prompt |
| How access is granted | none | none |
| What the user sees | Not listed | Not listed |
| How long it lasts | Not listed | Not listed |
| How to take it back | Not listed | Not listed |
| Store policy | None listed | None listed |
| API | Sensor.TYPE_PRESSURE | Relative altitude in meters, pressure in kPa; needs Motion and Fitness |
| Notes | Hectopascals, 300 to 1100 | None |
Data you get
What comes back: Pressure
Shape: float
How often: Up to 25 Hz
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
pressure | float | hPa | 300 to 1100 | about 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
| Type | Example | Apps |
|---|---|---|
| fitness | A step counter adds floors climbed when you take the stairs. | Apple Health, Fitbit |
| maps | An indoor map app finds which floor of a mall you are on. | Google Maps |
| health | A hiking app tracks elevation gain on a trail. | AllTrails, Gaia GPS |
| utilities | A weather app uses pressure from many phones to improve local forecasts. | None named |
| games | An outdoor game notices that you climbed a hill and gives a reward for the real world climb. | None named |
| security | An 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | 2 | Rough identifying entropy, when known |
Related capabilities
Related
- Raw accelerometer and gyroscope. Can see how your phone moves and tilts, with no prompt
Sources
How well checked: Based on official documentation.