You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/13 05:18:42 UTC

[GitHub] [cordova-plugin-inappbrowser] shrivallabhDeshmukh edited a comment on issue #661: iOS WKWebView | Not able to open the Pop up window screen

shrivallabhDeshmukh edited a comment on issue #661: iOS WKWebView | Not able to open the Pop up window screen
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/661#issuecomment-612754573
 
 
   I just got fix for this issue.
   The Problem was if you try to open popup window inside WkWebView inAppBrowser, it was not working.
   I have added below method in CDVWKInAppBrowserUIDelegate class.
   
   ` - (WKWebView *)webView:(WKWebView *)webView createWebViewWithConfiguration:(WKWebViewConfiguration *)configuration forNavigationAction:(WKNavigationAction *)navigationAction windowFeatures:(WKWindowFeatures *)windowFeatures
   {
     if (!navigationAction.targetFrame.isMainFrame) {
       [webView loadRequest:navigationAction.request];
     }
   
     return nil;
   } `
   This will be come the similar behavior like UIWebView which always open new window in the current frame.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org