checkNotificationsEnabledWithAndroid method

Future<bool> checkNotificationsEnabledWithAndroid()

检测android 是否开启通知权限

Implementation

Future<bool> checkNotificationsEnabledWithAndroid() async {
  if (!_isAndroid) return false;
  final bool? state =
      await _channel.invokeMethod<bool?>('checkNotificationsEnabled');
  return state ?? false;
}