webview

How do I link to another app from within my App? Information such as deep link documentation

北城余情 提交于 2021-02-11 13:33:43
问题 Hello Stack Overflow Community, I am working on a project for work and my current environment is as follows, we have contracted a react native application that has some web-views within the app that my team develops the content for. Within these web-views we want to have an "Apps" web page where the user will be able to launch company apps. I have found a couple good deep links (Below) but do not know how to find information regarding the others... Documentation appears to be really spotty

Retrieve HTML element from webview on click

元气小坏坏 提交于 2021-02-11 09:44:19
问题 I'm facing an issue with Android's webview. I'm trying to get the HTML Element from a webview (for example, a field to complete). I don't have any hand on the displayed webview, I'm just a consummer. I have try some answers from stack over flow (onTouchListener, injection of JS code, addJavascriptInterface,...), but nothing works. With the "hitTestResult", I'm only facing "null" when I click somewhere inside the webview (even if this is a field to complete). Do you know how to retrieve the

Flutter WebView within ListView or CustomScrollView - Crashes on Android for large heights

て烟熏妆下的殇ゞ 提交于 2021-02-10 20:14:12
问题 Currently we've got a problem with the Flutter WebView within a ScrollView. We would like to display a WebView with article content written in HTML below an Image and other content like the title or buttons. It shouldn't be possible to just scroll the WebView. Instead, the entire content should be scrolled together. The problem is, that the WebView should scroll together with the header. Therefore the WebView needs a fixed height as far as I know. Via Javascript it's possible to get the

Android webview custom font using javascript

社会主义新天地 提交于 2021-02-10 16:20:49
问题 I am trying to show text in webview with custom font which i have selected to show that font style. So following details explain the problem in code public void setFontFamily(String fontFamily) { exec("javascript:RE.setFontFamily('" + fontFamily + "');"); } So In JS file I have following the code RE.setFontFamily = function(fontFamily) { RE.restorerange(); //document.execCommand("insertHtml", false, "&nbsp") console.log("Font Family: "+fontFamily) document.execCommand("styleWithCSS", null,

How to force a Windows 10 uwp webview app to load a url after suspend / resuming & auto reload when timing out

柔情痞子 提交于 2021-02-10 16:18:43
问题 This (simplified) c# / XAML UWP Webview app displays a blank page after the app is resumed after about 90+ sec. when displaying a local security cam video stream webpage. It appears to timeout after about 90 sec while the app is being suspended and then upon resuming the webview page is blank. To give the sample code below something to display, I randomly picked a site from a web search and landed on http://www.porttampawebcam.com/. The few youtube and webcam pages I've tried didn't reproduce

How to force a Windows 10 uwp webview app to load a url after suspend / resuming & auto reload when timing out

て烟熏妆下的殇ゞ 提交于 2021-02-10 16:07:47
问题 This (simplified) c# / XAML UWP Webview app displays a blank page after the app is resumed after about 90+ sec. when displaying a local security cam video stream webpage. It appears to timeout after about 90 sec while the app is being suspended and then upon resuming the webview page is blank. To give the sample code below something to display, I randomly picked a site from a web search and landed on http://www.porttampawebcam.com/. The few youtube and webcam pages I've tried didn't reproduce

Android webview custom font using javascript

亡梦爱人 提交于 2021-02-10 16:00:42
问题 I am trying to show text in webview with custom font which i have selected to show that font style. So following details explain the problem in code public void setFontFamily(String fontFamily) { exec("javascript:RE.setFontFamily('" + fontFamily + "');"); } So In JS file I have following the code RE.setFontFamily = function(fontFamily) { RE.restorerange(); //document.execCommand("insertHtml", false, "&nbsp") console.log("Font Family: "+fontFamily) document.execCommand("styleWithCSS", null,

How to make Android WebView clear cache?

孤街醉人 提交于 2021-02-10 12:18:51
问题 Here is my scenario. I am using WebView to show my mobile-ready website inside an app. We regularly update our website and automatically clear our website cache, so visitors get the latest version of our website instead of stale versions. I've noticed that sometimes WebView is serving old content -- it sometimes doesn't load newer versions of our website. Hence, I'm looking for a way to force WebView to show new content. I know I could totally disable WebView cache and force it to grab the

Intercept html button click

旧城冷巷雨未停 提交于 2021-02-10 05:46:29
问题 is there any possibility to intercept when a user clicks on a html button? I ve an webviewclient that load a login page with two buttons. Allow and Deny. I would you like to intercept when the deny button is pressed. (Deny and allow have the same basUrl and a js do the correct redirect). thanks in advance 回答1: You are probably not getting a callback to shouldOverrideUrlLoading() because that is only called if the user triggers the navigation - if you use jquery/javascript or some other kind

Intercept html button click

大城市里の小女人 提交于 2021-02-10 05:46:08
问题 is there any possibility to intercept when a user clicks on a html button? I ve an webviewclient that load a login page with two buttons. Allow and Deny. I would you like to intercept when the deny button is pressed. (Deny and allow have the same basUrl and a js do the correct redirect). thanks in advance 回答1: You are probably not getting a callback to shouldOverrideUrlLoading() because that is only called if the user triggers the navigation - if you use jquery/javascript or some other kind