@toddtarsi/sentry-cordova-shim
v0.18.1
Published
Official Sentry SDK for Cordova
Downloads
4
Maintainers
Readme
This is a beta release
Usage
Cordova in index.html
onDeviceReady
function:
onDeviceReady: function() {
...
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({ dsn: '___PUBLIC_DSN___' });
...
}
Ionic in your app.module.ts
:
...
import * as Sentry from 'sentry-cordova';
...
Sentry.init({ dsn: '___PUBLIC_DSN___' });