identifyUser static method

void identifyUser({
  1. String? externalId,
  2. String? restoreId,
})

To identify an user in Freshchat with an unique identifier from your system and restore an user across devices/sessions/platforms based on an external identifier and restore id

Implementation

static void identifyUser({String? externalId, String? restoreId}) {
  _channel.invokeMethod(
    'identifyUser',
    <String, String>{
      'externalId': externalId ?? "",
      'restoreId': restoreId ?? ""
    },
  );
}