bindPhoneNumber method

  1. @override
Future<Map> bindPhoneNumber(
  1. String phone
)
override

绑定手机号码

Implementation

@override
Future<Map<dynamic, dynamic>> bindPhoneNumber(String phone) async {
  if (!Platform.isAndroid) {
    return {
      'code': kAliyunPushOnlyAndroid,
      'errorMsg': 'Only support Android',
    };
  }

  Map<dynamic, dynamic> result =
      await methodChannel.invokeMethod('bindPhoneNumber', {'phone': phone});
  return result;
}