webview

Apache Cordova load external URL or website inside div

本秂侑毒 提交于 2021-02-08 07:59:24
问题 I am loading Website inside App using cordova.InAppBrowser.open('example.com', '_self', 'location=no,clearsessioncache=yes') and everything is works fine i.e it shows complete website mobile view inside the app, but now I am using some navigation inside assets\www\index.html file and when user will click on link the navaigation I want to load the website inside the div OR without losing the navigation. function load_web(URL) { cordova.InAppBrowser.open(URL, '_self', 'location=no

WebView language error Android N

不羁岁月 提交于 2021-02-08 07:57:21
问题 I am aware of this question asked before about the WebView being broken in Android N especially with localization. I have another problem which I cannot figure out how to fix. As shown in pic, I have two languages set on my Pixel device running 7.1.1. Now, I'm trying to load the following url in a WebView in my app. "https://accounts.google.com/ServiceLogin?<my-params>" What I notice is that the page loads in Chinese instead of English which is my current Locale language. I tried opening the

Webview get focus automatically when removing URL from Edit Text

醉酒当歌 提交于 2021-02-08 07:53:54
问题 I have one Edit Text, 5 buttons and a Webview. Webview load url when user type url in edit text and tap Go button or hit Enter on soft keyboard. I have three problems here. 1-WebView loads website for example "www.google.com" but soft keyboard does not hide itself. I want to hide it like other browser do. 2-When user open a specific url and then try to remove it from Edit Text to open a different url, webview start loading that incomplete url and get focus automatically on every letter

Stored audio files using Android WebView is not working

狂风中的少年 提交于 2021-02-08 07:31:26
问题 I am trying to store audio files binary string into sdcard using android webview. But when I try to play an audio file in my mobile filemanager, the audio file is not playing. I am using JavaScript Interface for getting and saving audio file binary data into sdcard. I don't want to use an android download manager or another download manager for downloading files. I need to fix the below-posted code for audio play. Here is code: import androidx.appcompat.app.AppCompatActivity; import android

Swift WebKit Picture in Picture

谁说胖子不能爱 提交于 2021-02-08 06:36:35
问题 How can you enable Picture-in-Picture on a Swift WebView from WebKit? At the moment, when you watch a video in a webView and switch to the home screen, you briefly see the picture-in-picture view in the top right on the home screen, but it disappears after a second. How can you retain it so it doesn't disappear? Thanks in advance! 回答1: Make sure you enabled Picture in Picture under BackgroundModes in Xcode. TARGETS -> Signing & Capabilities -> Background Mode If you are trying to embed a

Android WebView shows blank page

心不动则不痛 提交于 2021-02-07 20:21:07
问题 The problem occurs only some devices. My application has about 1.9 million users, I get this problem as feedback from some users. They have sent screen shots too. Detailed Explanation of problem: The WebView cannot show my static HTML content on some devices, shows only blank page. But 99% of devices works fine. According to user feedbacks, this problem occurs on many different brands like Samsung, Sony, LG, ZTE etc. Also they have different versions of Android OS from 4.0.3 to 5.1.1 Tried

Android WebView shows blank page

一个人想着一个人 提交于 2021-02-07 20:20:49
问题 The problem occurs only some devices. My application has about 1.9 million users, I get this problem as feedback from some users. They have sent screen shots too. Detailed Explanation of problem: The WebView cannot show my static HTML content on some devices, shows only blank page. But 99% of devices works fine. According to user feedbacks, this problem occurs on many different brands like Samsung, Sony, LG, ZTE etc. Also they have different versions of Android OS from 4.0.3 to 5.1.1 Tried

Chrome App localStorage not persisting and chrome.storage not working

妖精的绣舞 提交于 2021-02-07 13:17:53
问题 I have a chrome Kiosk App which I need to save data (a few bytes as a string) between the machine turning on and off. But what ever I try, the localStorage seems to be wiped on restart. When I go to chrome://inspect/#apps to inspect the Chrome App, there are no related errors in the console regarding to LocalStorage Within Chrome in a browser, I would simply use localStorage but this does not persist when in a Kiosk App. Example of code: window.localStorage.setItem(id, temp); window

Chrome App localStorage not persisting and chrome.storage not working

微笑、不失礼 提交于 2021-02-07 13:16:29
问题 I have a chrome Kiosk App which I need to save data (a few bytes as a string) between the machine turning on and off. But what ever I try, the localStorage seems to be wiped on restart. When I go to chrome://inspect/#apps to inspect the Chrome App, there are no related errors in the console regarding to LocalStorage Within Chrome in a browser, I would simply use localStorage but this does not persist when in a Kiosk App. Example of code: window.localStorage.setItem(id, temp); window

Display local html file content in UWP WebView

﹥>﹥吖頭↗ 提交于 2021-02-07 12:43:08
问题 I believe this is pretty straightforward task and I've seen a lot of examples in the web but still none of them is working for me since I experience different exceptions. html: <html lang="en"> <head> <meta charset="utf-8" /> <title></title> </head> <body> <p> Help html content. </p> </body> </html> xaml: <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <WebView x:Name="webView" /> <Button x:Name="buttonRefresh" Grid.Row="1" HorizontalAlignment