Capacitor bottom dock
Use triggerInsetPreset for common mobile chrome:
import { Mushi, triggerInsetPresets } from '@mushi-mushi/capacitor'
await Mushi.configure({
projectId: '...',
apiKey: 'mush_pk_...',
triggerMode: 'both',
triggerInsetPreset: 'tabBarSafe',
})Explicit insets win over presets:
await Mushi.configure({
projectId: '...',
apiKey: 'mush_pk_...',
triggerInset: {
bottom: triggerInsetPresets.dockSafe.bottom + 12,
trailing: 20,
end: 20,
},
})For Ionic or React Native Web shells that render the web widget inside the WebView, use the browser SDK widget.anchor with your app’s CSS tokens.
Last updated on