Hi All!
There is a webpage, what works well in Chrome in my android device. I have to make it to work in b4a webview. I have an initial code:
but I got error:
It looks like as a javascript problem, but it isn't happen in Chrome browser (in android). What have to do for my webview do works like Chrome?
thanks in advance
Steven
There is a webpage, what works well in Chrome in my android device. I have to make it to work in b4a webview. I have an initial code:
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private WebView1 As WebView
Dim WebViewExtras1 As WebViewExtras
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
WebViewExtras1.Initialize(WebView1)
Dim WebChromeClient1 As DefaultWebChromeClient
WebChromeClient1.Initialize("WebChromeClient1")
WebViewExtras1.SetWebChromeClient(WebChromeClient1)
WebViewExtras1.JavaScriptEnabled = True
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
WebView1.LoadUrl("https://arrakis.demo.promera.systems/")
End Sub
Private Sub WebView1_PageFinished (Url As String)
ToastMessageShow("Page loaded...",False)
End Sub
Private Sub WebChromeClient1_ConsoleMessage(ConsoleMessage1 As ConsoleMessage) As Boolean
Log(ConsoleMessage1.Message)
Return True
End Sub
B4X:
TypeError: y.map(...).flat is not a function
Uncaught TypeError: y.map(...).flat is not a function
thanks in advance
Steven
Last edited: