shouldShowRationaleToRequest abstract method

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

Check if the app must show some rationale before request the user's consent. Returns the list of permissions that can only be changed via user's intervention.

Implementation

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