identify method

Future<void> identify(
  1. String customerUserId
)

Use this method for identifying user with it’s user id in your system.

If you don’t have a user id on SDK configuration, you can set it later at any time with .identify() method. The most common cases are after registration/authorization when the user switches from being an anonymous user to an authenticated user.

Parameters:

  • customerUserId: User identifier in your system.

Implementation

Future<void> identify(String customerUserId) async {
  await _invokeMethodHandlingErrors<void>(Method.identify, {
    Argument.customerUserId: customerUserId,
  });
}