syncIOSBadgeNum method

  1. @override
Future<Map> syncIOSBadgeNum(
  1. int num
)
override

iOS 同步角标数

Implementation

@override
Future<Map<dynamic, dynamic>> syncIOSBadgeNum(int num) async {
  if (!Platform.isIOS) {
    return {
      'code': kAliyunPushOnlyIOS,
      'errorMsg': 'Only support iOS',
    };
  }

  Map<dynamic, dynamic> result =
      await methodChannel.invokeMethod('syncBadgeNum', {'badgeNum': num});
  return result;
}