Skip to content

mendrix/sentry-cordova

 
 

Repository files navigation


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

Travis codecov npm version npm dm npm dt

deps deps dev deps peer

Building a release

  • make sure you have npm, make and carthage installed
  • run npm install
  • run make
  • run npm run build
  • run npm pack

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 57.8%
  • JavaScript 22.3%
  • Objective-C 15.2%
  • Java 3.3%
  • Shell 1.3%
  • Makefile 0.1%