Asked
Active
Viewed 1.1k times
6

fartem
- 2,361
- 2
- 8
- 20

Aymen TLILI
- 134
- 1
- 1
- 7
-
2Try [this](https://pub.dev/packages/app_settings) plugin. – fartem Jan 25 '21 at 11:59
-
1Use permission_handler for this, https://pub.dev/packages/permission_handler – Dhara Patel Jan 25 '21 at 12:00
-
i am already using this package but it doesn't take me to this page specifecally, it opens app setting in general. @fartem – Aymen TLILI Jan 25 '21 at 12:01
-
@DharaPatel permission_handler package doesn't do the required job too – Aymen TLILI Jan 25 '21 at 12:05
3 Answers
10
Using Geolocator Package, you can open location settings as following. Please note that is will only open the device Location
page, not the App permission manager.
Geolocator.openLocationSettings();

dm_tr
- 4,265
- 1
- 6
- 30
-
i need to open the app permission manager on the location tab specifcally – Aymen TLILI Jan 25 '21 at 12:18
-
1
4
Use this package called, permission_handler. This will allow you to open the app settings page where you can find the location permission.
usage:
RaisedButton(
onPressed: () => openAppSettings(),
child: Text("Open app settings"),
),

imgkl
- 1,013
- 1
- 7
- 24
1
In GeoLocation
Package use Geolocator.openAppSettings();
Like that
AlertDialog(
actions: [
CupertinoDialogAction(
child: Text('Back'),
onPressed: () {
if (Platform.isIOS) {
exit(0);
} else {
SystemNavigator.pop();
}
},
),
CupertinoDialogAction(
child: Text('Settings'),
onPressed: () {
Geolocator.openAppSettings();
},
),
],
),

Abir Ahsan
- 2,649
- 29
- 51