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

[Bug]: Flutter SDK doesn't have a mechanism for us to exclude the NSLocationWhenInUseUsageDescription permission #1019

Open
2 of 3 tasks
feinstein opened this issue Apr 2, 2025 · 1 comment

Comments

@feinstein
Copy link

feinstein commented Apr 2, 2025

What happened?

I am getting warnings by the Apple App Store about my app including NSLocationWhenInUseUsageDescription and NSBluetoothAlwaysUsageDescription, which I think come from the one OneSignal Flutter SDK.

I can see other issues here about similar things and they point out to the native iOS SDK saying it's their fault, but I found this native SDK issue: OneSignal/OneSignal-iOS-SDK#1536 where they show how to selectively include the imports.

The Flutter SDK can use a similar mechanism to what permission_handler does with macros (expand the iOS setup section in their docs), so we could turn on/off the permissions and the code won't even be compiled/linked if we turn it off.

OneSignal Flutter SDK version

5.3.0

Which platform(s) are affected?

  • iOS
  • Android

Code of Conduct

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

Ensonberg commented Apr 9, 2025

I am also getting the same message when I push a build to the Apple app connect

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

2 participants