npm i @teamhive/capacitor-sentry
import '@teamhive/capacitor-sentry';
import { Plugins } from '@capacitor/core';
const { Sentry } = Plugins;
Sentry.initialize({
dsn:"dsn"
});
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({}) |