How to open device setting for notification permission in capacitor/ionic app?

If the user denied device notification permission using capacitor push notification plugin. But on next launch it doesn’t prompt for allow or don’t allow. so How can we reach out to setting when the permission is not granted.

Push notification plugin

Thank you all in advance.

You can use this Plugin :blush:

1 Like

This is excellent. Worked fine and found a lot of other settings access which is very helpful. thanks :relaxed:

Hey, great to hear it worked for you.
Im having the same issue, what Setting from the Plugin exactly did you use ?

This is the exact plugin for native settings access.

ts file

import { AndroidSettings, IOSSettings, NativeSettings } from 'capacitor-native-settings';
.
.
.

  openSetting() {
        if (this.platform.is('ios')) {
        await NativeSettings.openIOS({
          option: IOSSettings.App,
        });
      } else {
          await NativeSettings.openAndroid({
          option: AndroidSettings.ApplicationDetails,
        });
      }
  }

package version

    "capacitor-native-settings": "^0.2.1",
1 Like