🀠
User data & App info

Customer info

In order to pre-fill the customer's name & email, we recommend using the following method. This welcomes the user with his name and simplifies the feedback reporting, as the user doesn't need to enter his email again.
1
BugBattle.setCustomerInfo({
2
3
name: 'Isabella'
4
});
Copied!
This method is only available with v5 and later of our JavaScript SDK.

Customer email address

Pre-fills the customer's email address with all email form fields. Pre-filled email fields will be automatically hidden from the UI for an even better user experience.
1
BugBattle.setCustomerEmail("[email protected]");
Copied!

Customer name

Shows the customer's name as greeting message.
1
BugBattle.setCustomerName("Lukas");
Copied!

App version & build number

With the following methods you can add information about your application number and version code.

App build number

Default value: not set
1
BugBattle.setAppBuildNumber(5);
Copied!

App version code

Default value: not set
1
// Sets the app's version code.
2
BugBattle.setAppVersionCode("v5.0");
Copied!

​

Last modified 2mo ago