Skip to content
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]: Can we completely remove the Location permission? #215

Open
1 task done
aldoarya opened this issue Dec 13, 2023 · 2 comments
Open
1 task done

[question]: Can we completely remove the Location permission? #215

aldoarya opened this issue Dec 13, 2023 · 2 comments

Comments

@aldoarya
Copy link

How can we help?

I am building an app that only need the Push Notification feature without needing to know the location of the User at all.
I have tried to disable the location sharing after the OneSignal initialization like below

OneSignal.initialize(Constants?.expoConfig?.extra?.oneSignalAppId);
OneSignal.Location.setShared(false);

But, it seems that the location permission is still showing in the bundled app
image

Is there any way or plugin config that we can use to remove the needed location permission both in iOS and Android?

OneSignal Expo SDK version

2.0.2

Platform

iOS, Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@rikur
Copy link

rikur commented Dec 24, 2023

@aldoarya maybe blockedPermissions in Expo app.json will help?

"android": {
      "blockedPermissions": [

@emawby
Copy link
Contributor

emawby commented Jan 5, 2024

@aldoarya This issue has been resolved in our Android Native SDK so that the permission will no longer automatically be included. It will be available in our next release thank you for your patience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants