Skip to main content
All CollectionsInstabug Report Logs & DataFAQs
How can I automatically add a user's email address to a bug report without asking them to fill it in?
How can I automatically add a user's email address to a bug report without asking them to fill it in?

Yes, you can automatically fill in the email address using the identifyUser API.

Youssef avatar
Written by Youssef
Updated over 2 weeks ago

For each user, you can use the identifyUser API to automatically show their email and name without them having to enter it (This is in case you are already collecting them).

This will also ensure that all reports you receive from these users will have their email addresses included.

Ideally, this API should be called as soon as a user logs into your app.

Just do so by adding the following API for iOS:

Instabug.identifyUser(withID: "2374927027", email: "john.appleseed@apple.com", name: "John Appleseed")

You can find more information about this API for other platforms below:

Did this answer your question?