Camera Permissions using WKWebView

Dear folks,

This is my first time asking help here,

I've been working on a WKWebView app that loads a PHP website, the content allows user to upload pictures, audio and so.

Apple review process is asking me to change a default message from a popup where the Apps asks permission to use Camera and Audio.

For that, I added the respective code to the info.plist file. In the code when I ask permission for the user to use the features, the following happens:

Location: picks the comment from info.plist correctly

Photo Library: picks the comment from info.plist correctly

Camera: doesn't pick the description from info.plist

Audio: doesn't pick the description from info.plist

Only Camera and Audio is now holding my App to be published as the review process ask me to include an example on how the feature will be use inside the popup.

AppDelegate looks like:

class AppDelegate: UIResponder, UIApplicationDelegate {
   
   
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
     
    if UIImagePickerController.isSourceTypeAvailable(.camera) {
      AVCaptureDevice.requestAccess(for: AVMediaType.audio) { haveMicAccess in }
      AVCaptureDevice.requestAccess(for: AVMediaType.video) { haveVidAccess in } }
    if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) {
      PHPhotoLibrary.requestAuthorization({ (newStatus) in }) }
    // Override point for customization after application launch.
    return true
  }

My info.plist looks like:

The popup that doesn't pick the message from info.plist

If you can give me a direction on how ti fix this ... it would be a lot appreciated

Thanks,

Camera Permissions using WKWebView
 
 
Q