allowedUI property

Future<bool> get allowedUI

Indicates whether the device is capable of receiving remote notifications.

This function returns true if the user has granted permission to receive push notifications and the device has successfully obtained a push token from the notification service. It reflects whether the app can present notifications as allowed by the system and user settings.

Return true if the device can receive remote notifications, false otherwise.

Implementation

static Future<bool> get allowedUI async {
  return await _channel.invokeMethod('allowedUI');
}