Baseflow / Baseflow/flutter-permission-handler

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

Open
#1,562 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.2k
Forks
970
Avg merge
14h 22m
Merged PRs (30d)
2

Description

### Is there already an issue requesting this feature?

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).

### Please select affected platform(s)

- [x] 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:

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

### Specific requirements or considerations

_No response_

### Additional information or context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked Android Location Button documentation and inspect the plugin's existing Android location-permission APIs. Determine how session-based precise location should be exposed through Flutter, including whether a widget is appropriate and how the permission result is reported. Done means Android 17 Location Button support is integrated with a documented Flutter API and verified behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.