Skip to content

Commit 2ac1363

Browse files
dongwan-zbshlee-zigbang
authored andcommitted
iOS 권한 관련 크래시 수정
1 parent 9594b3c commit 2ac1363

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ios/CDVWKInAppBrowserUIDelegate.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ - (void) webView:(WKWebView*)webView runJavaScriptTextInputPanelWithPrompt:
114114
[[self getViewController] presentViewController:alert animated:YES completion:nil];
115115
}
116116

117+
- (void) webView:(WKWebView *)webView requestMediaCapturePermissionForOrigin:(WKSecurityOrigin *)origin
118+
initiatedByFrame:(WKFrameInfo *)frame
119+
type:(WKMediaCaptureType)type
120+
decisionHandler:(void (^)(WKPermissionDecision decision))decisionHandler
121+
API_AVAILABLE(ios(15.0))
122+
{
123+
decisionHandler(WKPermissionDecisionGrant);
124+
}
125+
117126
-(UIViewController*) getViewController
118127
{
119128
return _viewController;

0 commit comments

Comments
 (0)