requestFullscreenIntentPermission method

  1. @override
Future<void> requestFullscreenIntentPermission()
override

Requests permission for fullscreen intent on Android. This is typically used on Android to allow the app to display notifications in fullscreen mode.

Implementation

@override
Future<void> requestFullscreenIntentPermission() async {
  if (Platform.isAndroid) {
    try {
      await methodChannel
          .invokeMethod<String>('requestFullscreenIntentPermission');
    } on PlatformException catch (e) {
      log("Error requestFullscreenIntentPermission: ${e.message}");
      rethrow;
    }
  }
}