getPermissionStatus method

Future<PushNotificationPermissionStatus> getPermissionStatus()

The current Push Notificaiton permission state.

The status can be one of the following:

  1. shouldRequest - Android only status to indicate push permissions dialogue has not been requested
  2. shouldExplainThenRequest - should explain to end user why push notifications needs to be enabled before requesting again
  3. granted - end user has granted the request for the app to send push notifications
  4. denied - end user has denied the request for the app to send push notifications

Implementation

Future<PushNotificationPermissionStatus> getPermissionStatus() =>
    defaultPlugin.getPermissionStatus();