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