My app has stopped working since ios 13.3 upgrade. It is now failing to display the page in Webview. This is my code :-
Dim xui As XUI
File.Copy(File.DirAssets, la(Index,0) & ".pdf", File.DirDocuments, "page.pdf")
WKWebView1.LoadUrl(xui.FileUri(File.DirDocuments, "page.pdf"))...
Hi All
I am looking for someone to provide the equivalent B4I code as described in https://www.b4x.com/android/forum/threads/webview-post-and-cookies.112327/#post-700842
if you are interested, please PM and let me know how much will you charge for it
Thanks
iCAB
Hi All,
Can someone help provide the equivalent B4I code to the one below
Private Sub InvokeLoginURL(UrlToInvoke As String, UserName As String, Password As String )
If WebView1.IsInitialized = False Then
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 0, 0%y...
Hello,
sorry for my bad English.
I'm using OkHttputils2 to download a text file and read it. this file contains html code. I display this code in a webview.
it works well except for the characters "éèà% .."
is there a library to read this encoding correctly?
or how can I do it.
thank you
I'm trying to use a webview in a B4J application but it only appears to be saving the cookies into memory which is a default setting going by the Java documentation rather than a file so my web application doesn't stay logged in as the cookie is lost when it closes.
I've put the following code...
Hi Guys
I am looking for an example that shows how to invoke a login page in webview. The page requires POST and passing the user name and password in json format.
Thanks in advance
iCAB
End-users of some apps may need to choose small icons to save it into app's database.
But there was no tool to choose a needed icon in 2-3 taps, but the Internet is always under finger.
It seems, now it's possible.
No fully free services with API for image searching, with good big database...
Ola
Just got referred to this..
https://pentestlab.blog/2017/02/12/android-webview-vulnerabilities/ and
https://www.checkmarx.com/2017/12/07/javascript-attacks-webviews/
So how safe are we in following this approach in developing apps?
Ta!
I would like to speed up the loading of a webview that almost always (like in 90% of the times) will be loaded by the user. So it makes sense to pre-load the content upfront, for example in the main activity.
One feasible way would be to load the URL in the main activity or starter service and...
Is it possible to apply a custom CSS to a webview loaded with an external URL?
Reason: To hide certain elements that are not relevant in the webview as opposed to viewed in a regular browser.
Hello,
I have a long disclaimer displayed by a webview. I want the "I Agree" button enabled only after the user scrolls down until the end of the disclaimer.
I tried to find an event that can be triggered by the user reaching the bottom of the document and I found onOverScrolled but I don't...
Hola, soy nuevo en B4A, alguien me puede ayudar con el control de WebView, en una pagina web que muestro, hay imágenes y videos, que los videos si cargan, pero no funcionan los controles como el de pantalla completa. Saben si hay alguna forma?
Ademas los botones no me funcionan, eso lo note en...
I am using a webview to load an URL. The code worked fine until I try to load any 'https://' URL and then I get a blank page. I see several threads showing methods of ignoring/disabling the credential check, but nothing for working with a webview directly. The B4J section showed an example of...
Hello from France, I share with the community my first hybrid application construct with B4A.
The main game is embedded in a webview placed in the main activity.
And I used Firebase Admob library in a second activity.
The main difficulty was to establish the dialogue between Javascript and B4A...
Hello guys!
I am using the webviewExtras2 library and b4A 9.02
WebView1.GetSettings.GetLoadsImagesAutomatically=False cause compile error (attached)
I found in stackoverflow this code:
webView.getSettings().setLoadsImagesAutomatically(false);
What is wrong with my code? Any help?
I am using a bundle to copy state from Webview1 to Webview2. Here is the "paste" code:
Dim jo As JavaObject = myWebview
jo.RunMethod("restoreState", Array(myBundle))
This code compiles, but does not actually paste the new state into Webview2. Webview2 retains its old state.
I presume I need...
Hello!
Attached is a simple project that load a webpage in a webview and using the findAll RunMethod2 search and highlight all words searched. It's ok!
Why Log(FindAll(WebView1, word)) always return 0?
I need count the number of occurrences the word found..
How I can do this?
What is wrong in...
Hi there
The purpose of this is to demo how one can add, update, read and display mysql database records into a webview.
1. Setting up development environment
For this we have used, Xampp with MySQL, BlueStacks android emulator to install and test our apk, some php with CRUD functions etc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.