Skip to content

Commit 199e222

Browse files
committed
Update README.md
1 parent 37e374c commit 199e222

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ Locus.configure {
7373

7474
checkout [strings.xml](https://github.com/BirjuVachhani/locus-android/blob/master/app/src/main/res/values/strings.xml).
7575

76+
### How to disable background location permission if you don't use it.
77+
78+
It has been brought to my attention recently that this library includes background location permission in its `AndroidManifest.xml` file. This could cause a problem when publishing app on Google Play Store in a case where your does not actually request or use background location. If that happens then this is what you need to do.
79+
80+
Just add this line in your app's `AndroidManifest.xml` file and you should be good to go.
81+
```xml
82+
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
83+
```
84+
85+
Feel free to re-open [#53](https://github.com/BirjuVachhani/locus-android/issues/53) issue or file a new one if this does not work for you.
86+
7687
## Gradle Dependency
7788

7889
* Add the JitPack repository to your project's build.gradle file

0 commit comments

Comments
 (0)