loginUnidentifiedUser method

  1. @override
Future<void> loginUnidentifiedUser({
  1. IntercomStatusCallback? statusCallback,
})
override

Function to create a unidentified user in Intercom. You need to register your users before you can talk to them and track their activity in your app.

Implementation

@override
Future<void> loginUnidentifiedUser(
    {IntercomStatusCallback? statusCallback}) async {
  try {
    await _channel.invokeMethod('loginUnidentifiedUser');
    statusCallback?.onSuccess?.call();
  } on PlatformException catch (e) {
    statusCallback?.onFailure?.call(_convertExceptionToIntercomError(e));
  }
}