Skip to content

Commit 4451478

Browse files
authored
[loc_perm_lift] lift location perm responisbility (StasDoskalenko#197)
1 parent facf96d commit 4451478

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ A React Native bridge module for interacting with Google Fit
6161
// Process data from Google Fit Recording API (no google fit app needed)
6262
});
6363
```
64+
65+
**Note**: If you are using the recording API for location/ distance data, you have to [request](https://developer.android.com/training/location/permissions) the `location-permission` in your app's `AndroidManifest.xml`:
66+
`<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />`
6467
6568
Alternatively you can use event listeners (deprecated)
6669
```javascript

android/src/main/AndroidManifest.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.reactnative.googlefit">
3-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
43
</manifest>

0 commit comments

Comments
 (0)