eimermusic / sentry-cordova

The official Sentry SDK for Cordova

Home Page:https://sentry.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Official Sentry SDK for Cordova (Ionic, ...)

Travis codecov npm version npm dm npm dt

deps deps dev deps peer

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___' });

Documentation

About

The official Sentry SDK for Cordova

https://sentry.io/

License:MIT License


Languages

Language:TypeScript 56.5%Language:JavaScript 23.0%Language:Objective-C 15.7%Language:Java 3.4%Language:Shell 1.3%Language:Makefile 0.1%