Permissions on iOS App


The list of permissions by the application to function is as follows

Camera and microphone

Add microphone and camera usage keys into your Info.plist file for your application.

<key>NSMicrophoneUsageDescription</key>
<string>Use the microphone for VOIP calling</string>
<key>NSCameraUsageDescription</key>
<string>Use the camera for video calling</string>

Note

If you do not provide these keys, your application may crash when it launches.

iOS 14.5

  • The WKWebView will automatically ask for camera and audio permissions for all join meetings on the iOS 14.5 Platform.

iOS 15

The decideMediaCapturePermissionsFor API allows you to decide when and how to prompt the user for the camera or microphone permissions or you can set audio/video permissions to be requested once for the install life cycle of the application. You can refer to the details on  WWDC Video or the equivalent non-asynchronous version documented here.

Implement this function as part of the WKUIDelegate Protocol and set the implementation as the uiDelegate for your web view.

@available(iOS 15, *)
func webView(_ webView: WKWebView, decideMediaCapturePermissionsFor origin: WKSecurityOrigin,
 initiatedBy frame: WKFrameInfo, type: WKMediaCaptureType) async -> WKPermissionDecision {
    return .grant
}

Note

If you do not implement this delegate, your user will continue to get the permission prompt.