Skip to content

Commit d7d9458

Browse files
committed
docs(README): adding installation instructions for expo
1 parent 29db8c3 commit d7d9458

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ This app has crashed because it attempted to access privacy-sensitive data witho
4040

4141
See: https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription
4242

43+
For expo add the following to your `app.json`/`app.config.js`/`app.config.ts`:
44+
45+
```json
46+
{
47+
"ios": {
48+
"infoPlist": {
49+
"NSBluetoothAlwaysUsageDescription": "Your reason to use bluetooth"
50+
}
51+
}
52+
}
53+
```
54+
55+
**Important**: The first attempt to check the Bluetooth state will prompt the user for permission to access Bluetooth.
56+
4357
**Android**
4458

4559
To use `requestToEnable()` and `requestToDisable()` on Android, you have to add the `BLUETOOTH_CONNECT` permission to your `AndroidManifest.xml`:

0 commit comments

Comments
 (0)