showGlobalDndOverridePage method

  1. @override
Future<void> showGlobalDndOverridePage()
override

Opens the system settings page for overriding device Do Not Disturb mode.

This method returns a Future that resolves when the system settings page is opened. The user can then configure the app's behavior during Do Not Disturb mode to play sounds and vibrate even if the app is in silent mode.

On Android, this method opens the relevant system settings page directly.

On iOS this requires additional setup and permission from Apple, and is not enabled by default. If your app has been granted permission to override Do Not Disturb mode on iOS, calling this method will open the relevant system settings page. If your app has not been granted permission, calling this method has no effect and DnD modes will prevent your notification to play sounds and vibrates.

This method can be used to provide a way for users to easily access and manage the Do Not Disturb settings for your app. For example, you might add a button to your app's settings page that calls this method when tapped, or include a prompt in your app to encourage users to visit the Do Not Disturb settings page to configure their preferences.

Implementation

@override
Future<void> showGlobalDndOverridePage() {
  return AwesomeNotificationsPlatform.instance.showGlobalDndOverridePage();
}