In the session, regarding prompting user for camera or microphone permission, the delegate method shown in the code snippet is the following:
func webView(_ webView: WKWebView, decideMediaCapturePermissionFor origin: WKSecurityOrigin, initiatedByFrame frame: WKFrameInfo, type: WKMediaCaptureType) async -> WKPermissionDecision {
return type == .microphone ? .prompt : .deny
}
But, I couldn't find this method in the documentation. Instead, I found this:
func webView(_ webView: WKWebView,
requestMediaCapturePermissionFor origin: WKSecurityOrigin, initiatedByFrame frame: WKFrameInfo, type: WKMediaCaptureType, decisionHandler: @escaping (WKPermissionDecision) -> Void)
Which one is the latest? Thanks!
Post
Replies
Boosts
Views
Activity
If by any chance, maximum allowance is set smaller than execution time allowance, does maximum allowance overrule the execution time allowance?
Say I have a widget that requires user authentication to display relevant information, and the moment user is picking my widget in the Widget Gallery the authentication is not yet established. In this case, what's the recommendation on widget UI. Should the widget show the placeholder UI, or a UI urging user to login, or a UI using sample data?
I didn't hear any information related to AppCache in the session. I am wondering if Apple has any future plan to remove AppCache from WKWebView.
In the session, many invocation methods were mentioned, but is it possible or allowed for an app to invoke another app's App Clip? Say an app showing all the nearby coffee shops, and when user selects a coffee shop, user can order coffee via the coffee shop's App Clip.