Skip to content

[Bug] Automatic permission detection doesn't work in apps using flavors #1548

Description

@mvanbeusekom

Versions: Flutter 3.44.4, permission_handler_apple 9.4.10

The automatic detection of permissions added with the support for Swift Package Manager doesn't work for applications using multiple Info.plist files separated by build configurations (e.g., Info-Debug.plist and Info-Release.plist) instead of the default Info.plist.

It seems the plugin fails to detect the required permission keys because it only searches for the hardcoded ios/Runner/Info.plist path during the build time.

NOTE: originally reported by @tazan83 as part of issue #1544.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work list.platform: iosIssue is related to the iOS platformtype: bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions