PricingBlogDocumentationDocsLoginRegister

Connect your Cordova project to GlitchTip

Install the SDK using the cordova command:

$ cordova plugin add sentry-cordova

You should init the SDK in the deviceReady function, to make sure the native integrations runs. For more details about Cordova [click here]({%- link _documentation/platforms/javascript/cordova.md -%})

onDeviceReady: function() {
  var Sentry = cordova.require("sentry-cordova.Sentry");
  Sentry.init({ dsn: 'YOUR-GLITCHTIP-DSN-HERE' });
}

One way to break your Cordova application is to call an undefined function:

myUndefinedFunction();