This is an experimental feature that stores camera and microphone permission settings per mini app. The stored preference ensures users aren’t repeatedly prompted for the same permissions. Check the
features.cameraAndMicrophoneAccess flag in the SDK context to determine if permissions have been granted.Platform Support
| Platform | Supported | Notes |
|---|---|---|
| iOS | ✅ | Full support with domain-level permissions |
| Android | ✅ | Supported (see note below) |
| Web | ❌ | Not currently supported |
On Android, camera and microphone permissions work slightly differently than iOS. Once permissions are granted to the host app, mini apps may have access without additional prompts. This is standard behavior for Android WebView permissions.
Usage
Return Value
Returns aPromise<void> that:
- Resolves when the user grants permission
- Rejects when the user denies permission or dismisses the dialog
Feature Detection
Before using this action, check if it’s supported:Permissions
- The permission dialog will only be shown once per mini app - the user’s choice is stored
- If the user has previously granted or denied permissions, the stored preference is used and the promise will immediately resolve or reject without showing a dialog
- The stored permissions ensure users aren’t repeatedly asked for the same access
- Users can revoke permissions at any time by:
- Opening the mini app
- Tapping the options menu (three dots)
- Toggling the camera and microphone access switch

