Automatic integration
Smartlook can be automatically integrated into Bugsnag like this:
Bugsnag.start(this)
...
Smartlook.enableIntegration(BugsnagIntegration())
Bugsnag.start(this);
...
Smartlook.enableIntegration(new BugsnagIntegration());
The Smartlook session URL can be seen in the Smartlook
section inside every crash report.

Manual integration
Smartlook can be easily integrated into Bugsnag using OnErrorCallback
:
val errorCallback = OnErrorCallback { event ->
event.addMetadata("Smartlook", "Dashboard session URL", Smartlook.getDashboardSessionUrl(true))
true //report this error
}
Bugsnag.addOnError(errorCallback)
OnErrorCallback errorCallback = event -> {
event.addMetadata("Smartlook", "Dashboard session URL", Smartlook.getDashboardSessionUrl(true));
return true;
};
Bugsnag.addOnError(errorCallback);
Full Bugsnag documentation with examples can be found on the official website.