getJidFromPhoneNumber method

  1. @override
Future<String?> getJidFromPhoneNumber(
  1. String mobileNumber,
  2. String countryCode
)
override

Implementation

@override
Future<String?> getJidFromPhoneNumber(
    String mobileNumber, String countryCode) async {
  String? jid = "";
  try {
    jid = await mirrorFlyMethodChannel.invokeMethod<String?>(
        'getJidFromPhoneNumber',
        {"mobileNumber": mobileNumber, "countryCode": countryCode});
    return jid;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}