Android Question Webview not loading my payment page

Reminisce

Active Member
I'm trying to load my payment page but it's not loading the Javascript part.
B4X:
Sub btnaddmoney_Click

Dim wve As WebViewExtras

Dim wbve As WebViewXtender

animateview(pnladdmoney)

sweetprogressdialog("Intializing Online payment...")

webview.Initialize("webview")

wve.addWebChromeClient(webview,"wve")

pnladdmoneywebview.AddView(webview,0,0,100%x,70%y)

webview.loadUrl(Starter.serverlink&"pay.php")

End Sub

I even added webchromeclient, but the progress dialog keeps loading..
Loading this web page on my Phone's browser works well. Screenshot_20200518-214426.png
Screenshot_20200518-211833.png

Modified: I have also tried to use webextras2 and its still the same issue.
 
Last edited:

JohnC

Expert
Licensed User
Longtime User
First try adding this line:

B4X:
webview.JavaScriptEnabled = True

If that doesn't work, then this a long shot, but maybe part(s) of the page you are trying to load use non-ssl (HTTP and not HTTPS), so you might need to add this line to the manifest to allow HTTP connections:

SetApplicationAttribute(android:usesCleartextTraffic, "true")
 
Upvote 0

Reminisce

Active Member
First try adding this line:

B4X:
webview.JavaScriptEnabled = True

If that doesn't work, then this a long shot, but maybe part(s) of the page you are trying to load use non-ssl (HTTP and not HTTPS), so you might need to add this line to the manifest to allow HTTP connections:

SetApplicationAttribute(android:usesCleartextTraffic, "true")
Thank you, I' already have this option in my manifest though I'm not on android 9. Javascript is enabled as well, and you're correct the page does uses https as it's a payment page.
 
Upvote 0
Top