getsentry/sentry-cordova

The official Sentry SDK for Cordova

81

stars

292

commits

TypeScript

primary language

Mar 19, 2026

updated

sentry.io/
android
cordova
ionic
ios
sdk
sentry
tag-archived
team-mobile

README

Sentry

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

[!IMPORTANT] Cordova is being superseded by modern alternatives like Capacitor. This codebase is no longer maintained by Sentry. If you are starting a new project or planning a migration, consider using Sentry Capacitor, Sentry React Native, or Sentry Flutter instead.

===========

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

build codecov npm version npm dm npm dt X

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

[!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.

Contributors

(top 30 of 36)

HazAT

143 commits

lucas-zimerman

49 commits

jennmueng

25 commits

getsentry-bot

18 commits

getsentry/sentry-cordova

The official Sentry SDK for Cordova

81

stars

292

commits

TypeScript

primary language

Mar 19, 2026

updated

sentry.io/
android
cordova
ionic
ios
sdk
sentry
tag-archived
team-mobile

README

Sentry

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

[!IMPORTANT] Cordova is being superseded by modern alternatives like Capacitor. This codebase is no longer maintained by Sentry. If you are starting a new project or planning a migration, consider using Sentry Capacitor, Sentry React Native, or Sentry Flutter instead.

===========

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

build codecov npm version npm dm npm dt X

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

[!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.

Contributors

(top 30 of 36)

HazAT

143 commits

lucas-zimerman

49 commits

jennmueng

25 commits

getsentry-bot

18 commits

Languages

TypeScript

46.9%

Java

18.1%

JavaScript

17.3%

Objective-C

13.4%

Shell

4.1%