isIOSChannelOpened method

  1. @override
Future<bool> isIOSChannelOpened()
override

iOS 通知通道是否已打开

Implementation

@override
Future<bool> isIOSChannelOpened() async {
  if (!Platform.isIOS) {
    return false;
  }

  var opened = await methodChannel.invokeMethod('isChannelOpened');
  return opened;
}