-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question]: How to remove Android Permission Location from Android Manifest? #1875
Comments
Hi @herotha thanks for reaching out! Did you previously have location sharing enabled? Adding android.permission.ACCESS_COARSE_LOCATION is part of the location sharing setup but this is not required to use the OneSignal SDK. If you don't want to track location, you can remove this, although I am unsure if any other SDKs or libraries in your app may need it. Thanks for the additional information! |
Hello @jennantilla No, I don't enable location sharing in my project. I just updated OneSiginal SDK from 4.X.X to 5.0.3 and my project got this extra android.permission.ACCESS_COARSE_LOCATION in Android manifest. When I checked on the merged manifest, I found out that OneSignal library has this permission (screenshot). My current project's scope needs only OneSignal Push Notification Service. Other services, for example, SMS, email, location sharing ... so on, are not in my project scope yet. |
Oh, @jennantilla this is my Onesignal integration |
Hi @herotha, one possible solution is, rather than include the entire
|
Thanks @brismithers . |
Users of the native OneSignal Android SDK can remove the location module from dependencies. Closing this issue as resolved. We are investigating how to address this in OneSignal's cross platform SDKs as brought up in the linked issue on Unity above. |
How can we help?
When I submit to Play Store, I just noticed my app has extra Android android.permission.ACCESS_COARSE_LOCATION.
Is there anyway to omit that permission from my App Manifest?
I just upgraded OneSignal SDK to version 5.0.3. And I don't want my user know I have this permission inside my app.
Code of Conduct
The text was updated successfully, but these errors were encountered: