Background permission getting added in the merged manifest
rananhffc opened this issue · 9 comments
Describe the bug
I loved locus, the implementation was really easy and it handles everything but the only issue is that I do not need background location updates, i only need it on demand, but after implementing locus Background permission is getting added to the merged manifest as well and so i have an issue in uploading it on the play store.
To Reproduce
Steps to reproduce the behavior:
- Import locus
- Check merged manifest
Expected behavior
As mentioned i require the location only on demand, so is it possible to get only that and not have to take the background location permission?
The permission is added into the manifest file of the library. Perhaps I need to make it explicit so the user if wants to use background location. needs to add the permission in the manifest file manually! I think that could work.
yes that would be helpful and would solve the issue, do close this once you have made the change so that i get informed, i will then reimplement it in my app. Thanks for the wonderful work!
As an alternative, you can place below tag in your manifest:
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
Awesome! I didn't know that. Thanks @iChintanSoni. @rananhffc Does this help in your case? If it does, then I will add this as a note in the readme for other fellow developers who may face what you're facing. Let me know if this works for you!
@rananhffc Did you get a chance to try this? Let me know if you did.
hi sorry for the delay in reply, i am yet to implement the manifest remove line, will probably do it by end of this month, but im quite confident that will solve the issue, soo will close this issue. Thanks a ton!
Great. I'll add this to documentation. Let me know if this does not work. Thanks.
This week, I haven0t been able to publish my app since Google denied it. The reason? The merged AndroidManifest.xml had the background permission. I removed it as you suggested and they still denied it.
This week, I haven0t been able to publish my app since Google denied it. The reason? The merged AndroidManifest.xml had the background permission. I removed it as you suggested and they still denied it.
Did you add below the line in your manifest?
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />