Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.22 KB

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({})