Include the script in your HTML page and page initialize it.
Older mobile browsers do not support the window.onerror callback and therefore the plugin will not receive any uncaught exception.
When there's only the Error object caught, error.stack will be parsed to get the url and line number.
Bugsense.js uses CORS to send crash reports.
Registering caught exceptions
Bugsense.js also allows you to register handled exception and append custom data to the crash report.
Custom data & Breadcrumbs
You can add custom data to the BugSense crash reports as well as breadcrumbs to help you debug your app faster!