In my app, I have a WKWebView
loading a website with file input that allows a user to upload images via the Camera or the Photo Library.
My app has both privacy usage descriptions for the Camera and Photo Library.
If a user has denied access to the Camera, the WKWebView
will still show the option to upload images via the Camera, and the Camera modal presents (though it only shows black where you'd normally see an image of what the camera is showing). If a user swipes to the Video option in the Camera modal, the app crashes.
The relevant stack trace shows:
3 TCC __TCCAccessRequest_block_invoke_2.80 + 222
4 TCC __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 682
Is it possible from the native app side (suppose I can't edit the HTML loaded) to prevent the WKWebView
from presenting the Camera modal in this case?