Unable to open angular 4 app in a webview - android

I am trying to open
http://admin.aquateams.com
in android webview but it's showing white screen.
Do I need any polyfill for this ??
Here is webview code for android:
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.setScrollbarFadingEnabled(false);
webView.getSettings().setBuiltInZoomControls(true);
webView.loadUrl(String.valueOf("http://admin.aquateams.com")));

var myWebView = page.getViewById("my-web-view");
myWebView.android.getSettings().setJavaScriptEnabled(true);
myWebView.android.getSettings().setAppCacheEnabled(true);
myWebView.android.getSettings().setDomStorageEnabled(true);

Related

Android how to make webView show pop up input dialog

Pop up like this pic
I tried this setting but didn't work
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setLoadWithOverviewMode(true);
webview.getSettings().setUseWideViewPort(true);
webview.setWebViewClient(new WebViewClient());
webview.setWebChromeClient(new WebChromeClient()) ;
Use alert of of Javascript? Because I don't understand what you want.

In Android, why does a webpage display correctly on Google Chrome and not in a WebView?

My webpage works fine on Google Chrome on my Android phone, but it does not display well when I load it inside a WebView.
My WebView settings as follows:
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setDomStorageEnabled(true);
webview.getSettings().setDatabaseEnabled(true);
webview.getSettings().setAppCacheEnabled(true);
webview.getSettings().setUseWideViewPort(true);
webview.getSettings().setLoadWithOverviewMode(true);
webview.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
What could be the problem?
Try this before the settings but after you put in the URL
nameOfWebView.setDrawingCacheEnabled(true);
nameOfWebView.buildDrawingCache();
webview.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

Android webview cant to load daily motion website fully

I am trying to build a apps which will be able to youtube and dailymotion ...
youtube is ok but dailymotion is not load fully,it load's only menu bar with click restricted(no touch allowed)...How will i solve it,any idea please...
My sample code for loading WebView is here
webView.setWebViewClient(new myWebViewClient());
webView.setWebChromeClient(new myWebChromeClient());
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setAppCacheEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setSaveFormData(true);
webView.getSettings().setPluginState(WebSettings.PluginState.ON);
webView.loadUrl("http://www.dailymotion.com");
output window:
I have gotten a solution that can solve this problem..i have given my code here if would be beneficial..
webView.setWebViewClient(new myWebViewClient());
webView.setWebChromeClient(new myWebChromeClient());
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setAppCacheEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setSaveFormData(true);
webView.getSettings().setPluginState(WebSettings.PluginState.ON);
webView.getSettings().setDomStorageEnabled(true);
webView.loadUrl("http://www.dailymotion.com");

Android WebView can't display jquery-fullpage page properly

The page is implemented by jquery-fullpage plugin, like this:
http://alvarotrigo.com/fullPage/#firstPage
In android app, WebView doesn't display it properly. It overlaps all the sub pages in one page without scrollbar.
Any idea?
Version of your browser maybe affect. Check issue on Github.
Remember enable javascript in your WebView:
WebView webView = (WebView) findViewById(R.id.webview);
webView = (WebView) findViewById(R.id.webview);
webView.clearCache(true);
webView.clearHistory();
/* Enabling javascript */
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

Zoom On Web View

Hi I have a html document's webView Show me how I can enable zoom in webView??
My Code:
WebView webView = (WebView) findViewById(R.id.webView1);
webView.loadUrl("file:///android_asset/police_gozarname.html");
please try this snippet.
webView.getSettings().setBuiltInZoomControls(true);
Type below line before you load your webview.
webView.getSettings().setBuiltInZoomControls(true);
You can enable built in zoom controls by:
webView.getSettings().setBuiltInZoomControls(true);

Categories

Resources