syncIOSBadgeNum method
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;
}