Skip to content

[Feature request]: Support Android 17 Location Button for session-based precise location. #1562

Description

@camle83it

Is there already an issue requesting this feature?

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Use case

Android 17 introduces the Location Button, a new privacy for requesting a session-based location access.

Android documentation:
https://developer.android.com/guide/topics/permissions/private-alternatives/location-button

Currently, permission_handler exposes the traditional location permission APIs, but there does not appear to be an API for integrating the Android Location Button.

Proposal

Ideally, the plugin could expose a Flutter widget, for example:

LocationButton(
  onPermissionResult: (granted) {
    if (granted) {
      // Use precise location for the current session.
    }
  },
)

Specific requirements or considerations

No response

Additional information or context

No response

Activity

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

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