User Identification

This section covers how to bind each report to the identity of the user reporting the problem for your Flutter app. You can also add extra attributes about the device and the user. Luciq helps you bet

User Email and Name

If you already have a user's name and email, you can pre-fill the email field in the bug, feedback, and question reporting flow. The user will then be identified in all reports (bugs, improvements, questions), crashes, surveys, and feature requests.

Ideally, call this API as soon as a user logs into your app.

Dart
Luciq.identifyUser(String email, [String name, String id]);

User Data

You can add additional data about your users. This API is best used for dumping large amounts of data. Each call to this method overrides the user data attached. The maximum length of the string is 1,000 characters.

Dart
Luciq.setUserData("User data sample");

Logout

When a user logs out, call the following API. Calling logOut will reset the email and name previously set. It will also remove any currently set user attributes, user events, user chats, and user data.

Dart
Luciq.logOut();

Last updated