requestPermissionToSendNotifications abstract method

Future<bool> requestPermissionToSendNotifications({
  1. String? channelKey,
  2. List<NotificationPermission> permissions = const [NotificationPermission.Alert, NotificationPermission.Sound, NotificationPermission.Badge, NotificationPermission.Vibration, NotificationPermission.Light],
})

Prompts the user to enabled notifications

Implementation

Future<bool> requestPermissionToSendNotifications(
    {String? channelKey,
    List<NotificationPermission> permissions = const [
      NotificationPermission.Alert,
      NotificationPermission.Sound,
      NotificationPermission.Badge,
      NotificationPermission.Vibration,
      NotificationPermission.Light,
    ]});