6

the page i want to access from inside the app : enter image description here

fartem
  • 2,361
  • 2
  • 8
  • 20
Aymen TLILI
  • 134
  • 1
  • 1
  • 7

3 Answers3

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
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