# sentry-cordova
**Repository Path**: mirrors_getsentry/sentry-cordova
## Basic Information
- **Project Name**: sentry-cordova
- **Description**: The official Sentry SDK for Cordova
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-24
- **Last Updated**: 2026-03-01
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## 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/)_
[](https://github.com/getsentry/sentry-cordova/actions?query=branch%3Amain)
[](https://codecov.io/gh/getsentry/sentry-cordova)
[](https://www.npmjs.com/package/sentry-cordova)
[](https://www.npmjs.com/package/sentry-cordova)
[](https://www.npmjs.com/package/sentry-cordova)
[](https://x.com/intent/follow?screen_name=sentry)
**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/)
> [!WARNING]
> Example and sample code in is unmaintained. Sample code may contain security vulnerabilities, should never be used in production, and exists only for illustrative purposes.