Identify Users (Android)

Identify users within your Android Native application

Associate a user identifier with the active user. You can use any string that uniquely identifies the user of your application such as a database ID, an email, or a username.

SDK.identify("28dvm2jfa");

User traits can be added with a map as the second argument to SDK.identify.

Map<String, String> userData = new HashMap<>();

userData.put("name", "Jane Smith");
userData.put("email", "[email protected]");
userData.put("subscriptionPlan", "premium");

SDK.identify("28dvm2jfa", userData);

For more detailed information on User Identication at LogRocket check out our identification reference documentation.