@totalpave/cordova-sentry
v0.1.2
Published
Cordova Plugin for Sentry
Downloads
72
Readme
@totalpave/cordova-sentry
Cordova Plugin that incorporates Sentry native runtime for native tracking.
Sentry's Cordova plugin may offer more things out-of-the-box including scripts to handle uploading native debug symbols and JS source maps. But it's a package that doesn't receive regular maintenance.
This package doesn't concern itself with the JS runtime, allowing you to choose a runtime that makes sense for your application, and have it updated independently. This package also doesn't concern with scripts to upload source maps or other debug symbols.
This package only goal is to setup Sentry in the native environment as early as Cordova will possibly allow us.
Installing the plugin
This plugin requires a SENTRY_DSN
variable to be set at install time:
cordova plugin add @totalpave/cordova-sentry --variable SENTRY_DSN=<your-dsn>
Native Runtimes
|Platform|Version| |---|---| |iOS|8.25.0| |Android|7.9.0|
JS Runtime
This plugin does not include JS runtime. Sentry has several different JS runtimes available including:
Choose a JS runtime that makes sense for your application.
JS API
While this plugin does not integrate any JS runtimes, it does include an API to trigger a native exception capture for testing purposes. Useful for confirming if native symbols are working.
await window.totalpave.Sentry.testNativeException();
To capture exceptions/messages, use your own installed JS sentry runtime.