Search code examples
flutterpermissionsdo-not-disturb

Check if App has DND permission on Flutter


How to check from Flutter app if it has DND permission. And if not how to enable the user to allow Do Not Disturb access for the App?

Already added

<uses-permission  android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />

to Manifest.


Solution

  • There doesn't seem to be an existing library to handle this, so solution is to use platform channels.