Posts

Post marked as solved
1 Replies
1.1k Views
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!
Posted Last updated
.
Post marked as solved
1 Replies
310 Views
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?
Posted Last updated
.
Post marked as solved
1 Replies
607 Views
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.
Posted Last updated
.