Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getsentry/sentry-cordova
The official Sentry SDK for Cordova
https://github.com/getsentry/sentry-cordova
android cordova ionic ios sdk sentry tag-production team-mobile
Last synced: 1 day ago
JSON representation
The official Sentry SDK for Cordova
- Host: GitHub
- URL: https://github.com/getsentry/sentry-cordova
- Owner: getsentry
- License: mit
- Created: 2017-10-16T15:44:51.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T13:07:06.000Z (9 days ago)
- Last Synced: 2024-11-05T20:16:31.844Z (8 days ago)
- Topics: android, cordova, ionic, ios, sdk, sentry, tag-production, team-mobile
- Language: TypeScript
- Homepage: https://sentry.io/
- Size: 1.69 MB
- Stars: 68
- Watchers: 49
- Forks: 53
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Official Sentry SDK for Cordova (Ionic, ...)
_Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [**Check out our open positions**](https://sentry.io/careers/)_
[![build](https://github.com/getsentry/sentry-cordova/workflows/Build%20&%20Test/badge.svg?branch=main)](https://github.com/getsentry/sentry-cordova/actions?query=branch%3Amain)
[![codecov](https://codecov.io/gh/getsentry/sentry-cordova/branch/master/graph/badge.svg)](https://codecov.io/gh/getsentry/sentry-cordova)
[![npm version](https://img.shields.io/npm/v/sentry-cordova.svg)](https://www.npmjs.com/package/sentry-cordova)
[![npm dm](https://img.shields.io/npm/dm/sentry-cordova.svg)](https://www.npmjs.com/package/sentry-cordova)
[![npm dt](https://img.shields.io/npm/dt/sentry-cordova.svg)](https://www.npmjs.com/package/sentry-cordova)**This is a beta release**
## Usage
### Cordova in `index.html` `onDeviceReady` function:
```javascript
onDeviceReady: function() {
...
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({ dsn: '___PUBLIC_DSN___' });
...
}
```### Ionic in your `app.module.ts`:
```javascript
...
import * as Sentry from 'sentry-cordova';
...
Sentry.init({ dsn: '___PUBLIC_DSN___' });
```## Documentation
* [Installation](https://docs.sentry.io/platforms/javascript/guides/cordova/#install)
* [Using Sentry with Ionic](https://docs.sentry.io/platforms/javascript/guides/cordova/ionic/)
* [Documentation](https://docs.sentry.io/platforms/javascript/guides/cordova/)