iOS Question Webview PageFinished event not firing

Falcon

Member
Licensed User
Hi Guys,

I have a form in with a Webview control on it, both the Webview's 'Name' & 'Event Name' properties are set to 'Webview1' in the Visual Designer.
This Webview is also declared in the Process_Globals of the form like so:
B4X:
Public Webview1As WebView

Now when I load the form (containing the Webview) and then reference the Webview Control from within a Class Module I have like this:

B4X:
PageRoot_.RootPanel.LoadLayout("WebviewForm")
Main.Webview1.LoadUrl("https://www.google.com")

The URL does not show, nor does the PageFinished event fire of the Webview Control.

I have it like this in the Class Module:

B4X:
public Sub Webview1_PageFinished(Url As String)
      
End Sub

Now if I have an internal variable in the Class Module and make it equal to the Webview contained on the WebviewForm, like this:

B4X:
Dim MyWebview as Webview = Main.Webview1

Then the URL does load and show, but the PageFinished still does not fire!

Please can someone help me with this, I have really tried everything I can think of.
I had this working perfectly in B4A, but it will not work in B4i for some reason.

Thank you in advance,
Regards.
Jasques.
 

agraham

Expert
Licensed User
Longtime User
According to the second post here
your event signature is wrong
 
Upvote 0

Falcon

Member
Licensed User
Ah! You are an absolute legend! Thank you so much works perfect now!
It just needed the 'Success as Boolean' parameter to be added. :)
 
Upvote 0
Top