Skip to content

[Question]: Remove Location Permission from iOS/Android Builds #1949

@colaquecez

Description

@colaquecez

How can we help?

Image

I’m trying to remove location access from both iOS and Android builds, the issue is that the OneSignal plugin seems to automatically include location-related permissions, and I haven’t found a way to disable or remove them. Because of this, I’m being required to add location descriptions to the iOS Info.plist and handle location permissions on Android, even though my app does not use location at all.

Is there a way to configure OneSignal (or the build setup) so that location permissions are completely excluded from the build, avoiding the need to add location-related entries in the plist/manifest?

OneSignal Expo SDK version

"onesignal-expo-plugin": "^2.0.3"
"react-native-onesignal": "^5.2.16"

Platform

iOS

Relevant log output

ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “” bundle should contain a NSLocationWhenInUseUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you’re using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions