requestPostNotificationsPermission method

Future<bool> requestPostNotificationsPermission()

Request post notifications permission (Used to customize the service notification)

Returns true if the permission is granted, false otherwise.

The user can be asked for the permission only twice, if the user denied the permission twice, the function would not be able to ask for the permission anymore and it will return false, however, the user can still grant the permission manually from the app settings page.

In Android versions prior to Android 13 (Tiramisu), this method will return true without asking the user.

Implementation

Future<bool> requestPostNotificationsPermission() {
  return DashBubblePlatform.instance.requestPostNotificationsPermission();
}