Bluetooth LE scan and connect
Scans for nearby BLE devices and connects to read or write their data.
In one line
Can find and connect to nearby Bluetooth gadgets once you allow Bluetooth
Scans for nearby BLE devices and connects to read or write their data.
Shows which gadgets, wearables, trackers and beacons are near the person. Scan results and device names can act as an indoor location or an identity of what the person owns.
What it can and can't do
What the user does: You tap Connect to device or Scan for gadgets
It can
- Scan for nearby Bluetooth LE devices such as wearables, trackers and beacons
- Connect to a device and exchange data with it
- See device names, which can hint at what you own
- Guess rough indoor position from nearby beacons
It cannot
- Scan before you answer the Bluetooth prompt
- Scan freely in the background on iPhone; scans must name services and are rate limited
- Learn your location from scans on Android 12 and later when the app declares it does not use them for location
How it differs between platforms: iPhone shows one Bluetooth prompt per app; Android 12 and later shows Nearby devices, and older Android also needed location.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 4.3 (API 18) | iOS 5.0 |
| Permission or entitlement | BLUETOOTH_SCAN, BLUETOOTH_CONNECT (API 31); before that BLUETOOTH, BLUETOOTH_ADMIN plus location | NSBluetoothAlwaysUsageDescription |
| Protection level | dangerous | prompt |
| How access is granted | prompt | prompt |
| What the user sees | Nearby devices prompt (Android 12+); location prompt before that | Allow app to find and connect to Bluetooth accessories? (Allow / Don't Allow) |
| How long it lasts | Until revoked; auto-reset if unused for months | Until revoked |
| How to take it back | Settings > Apps > Permissions > Nearby devices | Settings > Privacy & Security > Bluetooth |
| Store policy | Play: no special declaration; neverForLocation flag lets a scan app skip the location link | App Review 5.1.1: purpose string required |
| API | BluetoothLeScanner, BluetoothGatt, CompanionDeviceManager | CoreBluetooth CBCentralManager |
| Notes | Android 12 stopped requiring location for BLE scans if the manifest says neverForLocation. | Since iOS 13 the prompt is per app. Scan results for unknown apps are rate limited in the background and need explicit service UUID filters. |
Data you get
What comes back: Advertisement and GATT data
Shape: list
How often: continuous while scanning
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
rssi | integer | dBm | -100 to 0 | 1 dBm |
advertising data | binary | bytes | 31 bytes legacy, 255 extended (BLE 5) | raw |
device address | string | MAC | random and rotating on both OS | iOS shows only a per-app UUID |
Technical limits
- Background scans must filter by service UUID on iOS
- Android 8+ throttles background scans (about 5 starts in 30 seconds)
- Hardware MAC addresses are hidden from apps on iOS and randomized on Android
The story
What it is
Lets an app scan for nearby Bluetooth LE gadgets and connect to read or send data.
For you
The app asks to find nearby Bluetooth devices. If you say yes, it can connect to your heart band, lock or tracker. The phone shows a small dot or icon when it is scanning.
For makers
This is the gateway for every smart gadget the maker sells. Without it, the hardware is useless. Scans can also show which gadgets and beacons are around, which is helpful for stores and risky for privacy.
Where you see it
| Type | Example | Apps |
|---|---|---|
| fitness | A heart rate strap streams your pulse live to a cycling app during a ride. | Strava, Peloton |
| health | A medical device sends glucose readings to a diabetes app every few minutes. | Dexcom |
| smart-home | A smart lock opens when you walk up and the app connects in the background. | August |
| games | A party game uses nearby phones as controllers or a toy robot connects over Bluetooth. | Sphero |
| shopping | A store app picks up a beacon at the shoe aisle and shows a coupon. | Target |
| utilities | A tracker finder app scans for lost keys. | Tile |
| analytics | A store counts how many phones walk by, which is a form of foot traffic measurement. | None named |
Risks
- Maps the gadgets near you
- Location by the back door
- Rogue devices
Android and iPhone in short
- Android: Android 12 no longer needs location for BLE scans if the app promises it will not use them to find you.
- iPhone: On iOS the prompt is per app. Background scans must name the device type they look for and are rate limited.
What the platform says
- Google: Bluetooth Low Energy. Connect Android to low power devices like heart rate bands and sensors.
- Apple: Core Bluetooth. Talk to low energy Bluetooth gadgets from your iPhone or iPad app.
Good uses and abuse
Legitimate uses
- Fitness bands
- Smart locks
- Medical devices
- Item finders
Known abuse
- Scanning for nearby phones or tags to build a presence trail
- Beacon based store tracking
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | 6 | Rough identifying entropy, when known |
A real example: LinkedIn
LinkedIn Android and iOS apps declare Bluetooth for headsets and Nearby features (seed research)
History
- 2012-10, Android 4.3 (API 18): BLE central role added
- 2013-09, iPhone iOS 7: Background BLE scanning limited to apps that list service UUIDs
- 2019-09, iPhone iOS 13: Bluetooth permission prompt added; apps can no longer scan silently
- 2021-10, Android 12 (API 31): BLUETOOTH_SCAN, BLUETOOTH_CONNECT, BLUETOOTH_ADVERTISE replace the old permissions and the location link
- 2024-09, iPhone iOS 18: AccessorySetupKit offers a picker that avoids the broad Bluetooth prompt
Related capabilities
Related
- Accessory pairing without broad Bluetooth access. Can pair the one accessory you pick without seeing other Bluetooth devices nearby
- Bluetooth advertise. Can make the phone visible to nearby Bluetooth devices, mostly while the app is open
- Bluetooth Classic (RFCOMM, A2DP, HID). Can talk to headsets, printers and car kits on Android; iPhone allows only certified accessories
Same idea on the web
- Web Bluetooth (GATT). Can connect to one nearby Bluetooth device you pick from a list
- Nearby Bluetooth devices. Can't scan for nearby Bluetooth devices without a picker you approve
Sources
- Android: Bluetooth permissions
- Apple: Core Bluetooth
- Apple: Core Bluetooth background execution modes
How well checked: Checked against real behavior.