Skip to content

Commit 1d68d94

Browse files
authored
Add android 11 notation (StasDoskalenko#255)
Related to StasDoskalenko#255 Credit to @moulie415
1 parent 7393912 commit 1d68d94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ If you didn't set `fitnessVersion` manually, you can simply skip this part.
1717
Note that 0.16.1 require fitness version above 20.0.0
1818
Please read https://developers.google.com/fit/improvements why we made the changes.
1919

20+
#### Android 11
21+
For Android 11, If you want to interact with `Google Fit` App.</br>
22+
For example, use `openFit()`,`isAvailable(callback)`. Otherwise ignore it.</br>
23+
Add the following queries into your `AndroidManifest.xml`
24+
```xml
25+
<queries>
26+
<package android:name="com.google.android.apps.fitness" />
27+
</queries>
28+
```
2029
### USAGE
2130

2231
1. `import GoogleFit, { Scopes } from 'react-native-google-fit'`

0 commit comments

Comments
 (0)