android-webview

How to disable remote android debugging of WebView in Ionic/Cordova

笑着哭i 提交于 2020-06-25 05:55:08
问题 I have an Android app built on top of the Ionic/Cordova platform. By default Remote Android Debugging is enabled. https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ This means that if the device is connected to a computer, one can go open the Chrome browser, go to chrome://inspect find a list of webpages, or app's with webviews, click inspect and see the apps HTML, JS and other resources. This is fine for debugging but I'd like this disabled in the released app. In

WebView How to run even when app is in background/closed (foreground service active)

一个人想着一个人 提交于 2020-06-17 09:38:19
问题 I'm building an app which will scrape some data from a website and shows a notification when some criteria are met. Everything works well without problems when the app is open (because the WebView is being rendered) but when I close the app the WebView is disabled so I cannot use it to scrape data anymore. The scraping code is inside a class called from a ForegroundService. I've already looked on the internet but I'm unable to find a solution or a substitute to WebView, do you have any ideas?

Render process crashing webview Android Pie (9)

不想你离开。 提交于 2020-06-17 05:35:47
问题 Trying to load the HTML files from assets folder, app working fine up to Android v8.1 and getting crash in Android Pie (9) devices. Seems like WebView render process getting crash according the debug logs, finding the ways to resolve this issue. Please help and suggest...Thanks in advance. From the logcat: 2019-09-19 15:37:13.967 3313-3342/? E/libc: failed to connect to tombstoned: Operation not permitted 2019-09-19 15:37:14.100 4499-4499/? E/audit: type=1701 audit(1568887634.098:9979): auid

Android WebView onPageCommitVisible not fired

落花浮王杯 提交于 2020-06-14 06:50:54
问题 I have a WebView, which loads an html page from server, but the page is invisible on the WebView. The html is loaded properly (I've debugged with chrome://inspect and the html, including all javascripts exist), but it is invisible on the phone screen. There was no changes in my code, when this bug appeared. The bug appeared when I installed updates to Android System WebView on my phone. If I uninstall the updates, all works properly again. In addition, I've checked the callbacks of the

Android WebView onPageCommitVisible not fired

主宰稳场 提交于 2020-06-14 06:50:10
问题 I have a WebView, which loads an html page from server, but the page is invisible on the WebView. The html is loaded properly (I've debugged with chrome://inspect and the html, including all javascripts exist), but it is invisible on the phone screen. There was no changes in my code, when this bug appeared. The bug appeared when I installed updates to Android System WebView on my phone. If I uninstall the updates, all works properly again. In addition, I've checked the callbacks of the

Flutter - How to download files in WebView?

和自甴很熟 提交于 2020-06-10 03:41:04
问题 I am using flutter_webview_plugin: ^0.3.8 but I have the same problem with webview_flutter: ^0.3.13 . In webview, I want to make use of a website which triggers a file download on successful completion of a captcha. However, I complete the captcha and nothing happens, no download. Is there something in Flutter like a webview download listener ("webview.setDownloadListener")? I only need this for Android. If not, is there a way of downloading files from a webview in Flutter? 回答1: A similar

Different behaviors in Open in App from browsers and other applications to my webView app

我与影子孤独终老i 提交于 2020-06-01 06:20:27
问题 Different behaviors detected: WhatsApp app, ask for "open in app", but, when app selected leaves my app behind and just go to default page (or keep existing page if aplication is already open) Chrome browser detects link from example.com/place and goes to example.com/place as expected. Firefox browser don't ask for "open in app" on example.com link, uses Firefox browser. Instagram app don't ask for "open in app" on example.com link, uses Instagram webview browser. Any ideas how to fix this?

Responsive website show on Web view out of mobile width(Not Responsive) other way in Chrome Looks Good

淺唱寂寞╮ 提交于 2020-05-25 03:58:10
问题 I am using webview to load the responsive website but it shows the width outside to the mobile size. I open the link in a mobile Chrome browser and it looks good... I mean to say the width does not fit to screen size of mobile; it shows out of width. I am also using these... for <viewport> tag for controlling its presentation. WebSettings settings = webview.getSettings(); settings.setJavaScriptEnabled(true); settings.setUseWideViewPort(true); settings.setLoadWithOverviewMode(true); Also I am

Responsive website show on Web view out of mobile width(Not Responsive) other way in Chrome Looks Good

…衆ロ難τιáo~ 提交于 2020-05-25 03:57:06
问题 I am using webview to load the responsive website but it shows the width outside to the mobile size. I open the link in a mobile Chrome browser and it looks good... I mean to say the width does not fit to screen size of mobile; it shows out of width. I am also using these... for <viewport> tag for controlling its presentation. WebSettings settings = webview.getSettings(); settings.setJavaScriptEnabled(true); settings.setUseWideViewPort(true); settings.setLoadWithOverviewMode(true); Also I am

Android Webview: Detect when rendering is finished

谁说胖子不能爱 提交于 2020-05-24 21:18:47
问题 I want to snapshot the WebView after the WebView is loaded. However, the returned bitmap is always null because the render hasn't loaded completed even though I use onPageFinished . I search on Internet and people suggest to use WebView.PictureListener , but this function is deprecated in API 12 . Some codes public class MainActivity extends Activity { private WebView mButterflyWebView; /** * Gets html content from the assets folder. */ private String getHtmlFromAsset() { InputStream is;