Is there a way to manage all the possible user protected resources in a webview(WKWebView) embedded inside the iOS application?

I am woking on an application which has a built in browser type of feature. The user can browse any url on that webview. We know that iOS mandates to add different privacy usage description for accessing different user sensitive informations such as NSCameraUsageDescription, NSMicrophoneUsageDescription etc. As I am not sure which website an user will browse & what user sensitive datas those websites will ask, how can I anticipate and add that usage description key/value in the plist? Is there any better way to handle this situation? Thanks in advance

Is there any better way to handle this situation?

If you are actually working on a Browser app then the recommendation is to avoid unnecessary access to personal data as mentioned in our documentation here.

Now, if you are using a WKWebView to allow access to browsing specific sites for the business purposes of your app, then there should be a defined set of usage description keys that you can add to your app to fit these needs. However, do not add more usage description keys than what is needed in your app, otherwise you need to provide justification for these keys if you plan to release your app on the App Store.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Is there a way to manage all the possible user protected resources in a webview(WKWebView) embedded inside the iOS application?
 
 
Q