yanncabral / open_settings_plus

The most complete flutter plugin packages for open various settings screen in Android and newer iOS.
MIT License
18 stars 13 forks source link

directly open "Camera permission" settings page on Android #10

Open jakusb opened 7 months ago

jakusb commented 7 months ago

Usecase:

I could not yet find which method would navigate there in current build 0.3.1

yanncabral commented 7 months ago

You might be able to achieve the desired result by calling the sendCustomMessage method on the OpenSettingsPlusAndroid instance. Here's an example of how to do this:

ListTile(
    onTap: () => settings.sendCustomMessage(
        'android.settings.APPLICATION_DETAILS_SETTINGS',
    ),
    title: const Text("Open app details"),
    trailing: const Icon(Icons.chevron_right),
),

If this works for you, we can include this functionality in the next release. If you're not being redirected to the exact page you want, try changing the message to match your use case and reply here so we can further investigate the issue.