getJidFromPhoneNumber method
This method is used to get JID from the phone number.
Implementation
@override
Future<String?> getJidFromPhoneNumber(
String mobileNumber, String countryCode) async {
String? jid = FlyConstants.empty;
try {
jid = await mirrorFlyMethodChannel.invokeMethod<String?>(
'getJidFromPhoneNumber',
{"mobileNumber": mobileNumber, "countryCode": countryCode});
return jid;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}