Microphone is only available from World App 2.8.85 and MiniKit 1.9.6.
- The user must grant permission to your mini app to use the microphone.
- The user must grant permission to World App to use the microphone.
Using the microphone
Request permission from the user to enable microphone for your mini app with the request permission command.- If you receive a
world_app_permission_not_enabled
orpermission_disabled
error code, you must prompt the user to enable microphone for World App first. This can be done by simply trying to start recording. - The microphone will automatically be turned off if the user closes your mini app or World App.
Debugging
- If you receive a
DomException Error
, it’s most likely because the user hasn’t granted permission to your mini app to use the microphone. - If the microphone turns off after a few seconds it’s because the user has not granted permission to your mini app to use the microphone.