Skip to content

Capacitor plugin for the Sentry/Raven native SDKs

Notifications You must be signed in to change notification settings

TeamMaestro/capacitor-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Capacitor Sentry

npm npm

Installation

  • npm i @teamhive/capacitor-sentry

Usage

import '@teamhive/capacitor-sentry';

import { Plugins } from '@capacitor/core';
const { Sentry } = Plugins;
Sentry.initialize({
    dsn:"dsn"
});

Api

Method Default Type Description
initialize(options: { dsn: string }) Promise<any>
crash() Call to crash app
setUser({id:string,email:string,username:string,ip:string,extra:Object })
setTags({tags:Object})
setExtra({extra:Object})
clearContext()
captureMessage({message:string})
captureException()
captureBreadcrumb({})