Skip to content

Commit

Permalink
ログ追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sonlichao committed Jun 27, 2024
1 parent 7afdc60 commit 2d58cdf
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,13 @@ - (void)webView:(WKWebView *)webView requestMediaCapturePermissionForOrigin:(non
API_AVAILABLE(ios(15.0))
{
WKPermissionDecision decision;

NSLog(@"_mediaPermissionGrantType origin.protocol host webView.URL.host %@ %@ %@ %@", _mediaPermissionGrantType, origin.protocol, origin.host, webView.URL.host);
NSLog(@"CDVWebViewPermissionGrantType_Prompt: %ld ", CDVWebViewPermissionGrantType_Prompt);
NSLog(@"CDVWebViewPermissionGrantType_Deny: %ld ", CDVWebViewPermissionGrantType_Deny);
NSLog(@"CDVWebViewPermissionGrantType_Grant: %ld ", CDVWebViewPermissionGrantType_Grant);
NSLog(@"CDVWebViewPermissionGrantType_GrantIfSameHost_ElsePrompt: %ld ", CDVWebViewPermissionGrantType_GrantIfSameHost_ElsePrompt);
NSLog(@"CDVWebViewPermissionGrantType_GrantIfSameHost_ElseDeny: %ld ", CDVWebViewPermissionGrantType_GrantIfSameHost_ElseDeny);

NSLog(@"_mediaPermissionGrantType: %ld origin.protocol: %@ host: %@ webView.URL.host %@", _mediaPermissionGrantType, origin.protocol, origin.host, webView.URL.host);
if (_mediaPermissionGrantType == CDVWebViewPermissionGrantType_Prompt) {
decision = WKPermissionDecisionPrompt;
}
Expand Down

0 comments on commit 2d58cdf

Please sign in to comment.