Activity recognition
Asks to detect walking, driving, cycling and step counts.
In one line
Can tell if you walk, drive or cycle, and count steps, after you allow Motion
Asks to detect walking, driving, cycling and step counts.
Motion classes reveal commutes, exercise habits and sleep schedules. On both OSes it is gated by a runtime prompt.
What it can and can't do
What the user does: You tap Allow when the app asks for physical activity or motion access
It can
- Detect walking, running, cycling and driving
- Count steps and walking distance
- Look back about 7 days of activity on iPhone
- Wake in the background through Play services on Android
It cannot
- See where you are
- Record activity before you allow it
- Keep going if you turn the permission off in Settings
- Skip the prompt on Android 10 and newer for step counters (iPhone raw motion sensors need no prompt)
How it differs between platforms: Android 10 and newer needs Activity recognition permission for step sensors. iPhone asks for Motion and Fitness.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 10 (API 29) | iOS 7.0 |
| Permission or entitlement | ACTIVITY_RECOGNITION | NSMotionUsageDescription |
| Protection level | dangerous | prompt |
| How access is granted | prompt | prompt |
| What the user sees | Allow or Don't allow | Allow or Don't Allow |
| How long it lasts | Until revoked or auto-reset | Until revoked |
| How to take it back | Settings > Apps > Permissions > Physical activity | Settings > Privacy & Security > Motion & Fitness |
| Store policy | Play: data-safety disclosure | App Review 5.1.1 |
| API | Sensor.TYPE_STEP_COUNTER, ActivityRecognitionClient | CMMotionActivityManager, CMPedometer |
| Notes | Needed for step counter and detector sensors starting with Android 10 (API 29). | Raw accelerometer and gyroscope reads do not need a prompt on iOS. |
Data you get
What comes back: Activity type and steps
Shape: event
How often: event driven; step counts per interval
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
steps | integer | steps | 0 to 100000 per day | 1 step |
Technical limits
- Raw motion sensors need no prompt
- Step count history limited to 7 days on iOS
The story
What it is
An app asks to know if you are walking, running, cycling or in a vehicle, and to count steps.
For you
You see a prompt asking to access physical activity or Motion and Fitness. If you allow it, the app can show your steps and know when you start a run or ride. If you say no, some tracking features do not work.
For makers
Makers use it to start workouts on their own, count steps cheaply and know when you are driving so they do not bother you. It also builds a picture of your daily routine: commute, exercise and sleep times.
Where you see it
| Type | Example | Apps |
|---|---|---|
| fitness | A running app starts recording the moment it senses you running, so you never forget to press start. | Strava, Nike Run Club |
| games | A walking game turns your real steps into hatching eggs and rewards. | Pokemon GO, Pikmin Bloom |
| health | A step counter shows daily steps and a weekly streak. | Apple Health, Google Fit |
| automotive | A driving score app detects that you are in a car and starts to log the trip. | Life360 |
| maps | A map app switches to walking directions once it sees you step out of a car. | Google Maps |
| analytics | An insurance or ad partner reads how much you move to guess your health. | None named |
Risks
- Reveals routine
- Health inference
Android and iPhone in short
- Android: Android asks for the Physical activity permission, and an app can get walking, driving and step events.
- iPhone: iPhone calls this Motion and Fitness. Apps ask once, and you can turn it off in Settings.
What the platform says
- Google: Activity recognition. Android can detect when you walk, run or ride so apps can respond to what you are doing.
- Apple: Motion and Fitness. Apple lets apps show your steps, distance and activity type when you allow Motion and Fitness.
Good uses and abuse
Legitimate uses
- Fitness tracking
Known abuse
- Behavior profiling
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2013-09, iPhone iOS 7: M7 motion coprocessor introduced; motion access via CoreMotion
- 2019-09, Android 10 (API 29): ACTIVITY_RECOGNITION made a runtime permission
Related capabilities
Related
- Body sensors. Can see your heart rate and similar body signals while the app is open
Same idea on the web
- Accelerometer, LinearAccelerationSensor, GravitySensor. Can feel how your device moves and rests while the page is open
- Gyroscope. Can feel how fast your device turns while the page is open
Sources
How well checked: Based on official documentation.