openNotificationAccessSettings method

Future<void> openNotificationAccessSettings()

Opens the system page where the person gives this app notification access. Android lets no app give it to itself.

Implementation

Future<void> openNotificationAccessSettings() async {
  if (await _askHomeApp('badges.settings') != 'true') {
    throw UnsupportedError('Notification badges need an Android home app built with dartvel.android.notificationBadges: true.');
  }
}