Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Webview, prevent target blank from opening in new window & android settings

$
0
0

Hi, I have a remote url, which loads Disqus comments. However on android,when the user needs to authenticate the app automatically opens a new window with a webview. So far I have found no way in preventing this from happening or determining that it is happening, since it is a remote url. Any suggestions to this?

I know that in android a webview can be given the setting not top open multiple windows.

webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(false);
webView.getSettings().setSupportMultipleWindows(false);
however i noticed that, in titanium these values are hardcoded to
settings.setSupportMultipleWindows(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
{see reference}

is there a way on how to override these settings? its really frustrating not being able to handle how the webview interacts with my application.


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>