Skip to main content

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

You can use the identifyUser API to automatically show each user's email and name without them having to enter them (this is in case you are already collecting them).

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

Ideally, this API should be called when 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?