MiniKit.requestPermission() to ask the user for a permission such as notifications or microphone access.
Basic Usage
Result
Fallback Behavior
Define a custom fallback in the command payload for support outside mini apps.Error Codes
The SDK’sRequestPermissionErrorCodes enum defines these errors:
For microphone access,
permission_disabled or world_app_permission_not_enabled means the user must first enable the microphone for World App; see the microphone guide. The SDK types world_app_permission_not_enabled and mini_app_permission_not_enabled on the separate MiniAppMicrophone response event, not in RequestPermissionErrorCodes.