registerWithApiKey method
Register a customer (App-to-App) with an OMICall API key.
fcmToken is the FCM token on Android and the APNS token on iOS.
Implementation
Future<OmiRegisterResult> registerWithApiKey({
required String fullName,
required String userUuid,
required String apiKey,
required String phone,
required String fcmToken,
bool isVideo = true,
String projectId = "",
}) async {
final action = OmiAction(
actionName: OmiActionName.INIT_CALL_API_KEY,
data: {
'fullName': fullName,
'usrUuid': userUuid,
'apiKey': apiKey,
'phone': phone,
'isVideo': isVideo,
'fcmToken': fcmToken,
'projectId': projectId,
},
);
return OmiRegisterResult.fromNative(await _controller.action(action));
}