HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

User Data

User data is used to add chunks of information to a user so that it's sent to the dashboard with the reports. Each call to this API overwrites the previous data added. This method takes a string argument.

Instabug.userData = "User Data"
Instabug.userData = "User Data";
Instabug.setUserData("User data");
Instabug.setUserData("User data sample");
//Set the user data 
cordova.plugins.instabug.setUserData(
    'user_data',
    function () {
        console.log('Success');
    },
    function (error) {
        console.log(error);
    }
);
//iOS
Instabug.SetUserData("user_data");

//Android 
Instabug.UserData = "User data";
Instabug.setUserData("User data sample");