OneSignal / onesignal-expo-plugin

The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.
Other
153 stars 49 forks source link

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

Open aldoarya opened 9 months ago

aldoarya commented 9 months ago

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

rikur commented 9 months ago

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

"android": {
      "blockedPermissions": [
emawby commented 9 months ago

@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