Skip to content

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

@feinstein

Description

@feinstein

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions