getPermissionStatus method
The current Push Notificaiton permission state.
The status can be one of the following:
- shouldRequest - Android only status to indicate push permissions dialogue has not been requested
- shouldExplainThenRequest - should explain to end user why push notifications needs to be enabled before requesting again
- granted - end user has granted the request for the app to send push notifications
- denied - end user has denied the request for the app to send push notifications
Implementation
Future<PushNotificationPermissionStatus> getPermissionStatus() =>
defaultPlugin.getPermissionStatus();