Capacitor quickstart
The Capacitor plugin delegates to the native iOS / Android SDKs at runtime
and falls back to @mushi-mushi/core on the web.
1. Install
pnpm add @mushi-mushi/capacitor
npx cap sync2. Configure
src/mushi.ts
import { Mushi } from '@mushi-mushi/capacitor'
await Mushi.configure({
projectId: 'YOUR_PROJECT_ID',
apiKey: 'YOUR_PUBLIC_API_KEY',
triggerMode: 'shake', // 'shake' | 'button' | 'both' | 'none'
captureScreenshot: true,
})3. Submit a report
await Mushi.report({
description: 'Date picker is in UTC, not local',
category: 'bug',
})Coming from Cordova? Migrate in place to Capacitor first — the Cordova → Capacitor migration guide walks through the plugin map and the Mushi widget swap.
Considering React Native? See the Capacitor → React Native migration guide for the full porting plan, plugin map, and CI/CD recipe.
See @mushi-mushi/capacitor for the full API surface
(listeners, setUser, setMetadata, triggerInset, useNativeWidget).
Last updated on