iOS Question WKWebView and WebView - OverrideUrl

Pendrush

Well-Known Member
Licensed User
Longtime User
I have this code:
B4X:
Sub Process_Globals
    
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    Private WebV As WKWebView
    
End Sub

Private Sub Application_Start (Nav As NavigationController)
    
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.LoadLayout("p1")
    NavControl.ShowPage(Page1)
        
    WebV.LoadUrl("http://mashable.com/")
    
End Sub

Sub WebV_OverrideUrl (Url As String) As Boolean
    
    Log("Loading: " & Url)
    Return False
    
End Sub

Sub WebV_PageFinished (Success As Boolean, Url As String)
    
    Log("Finished: " & Url)
    
End Sub

And get this output:

Depending on page I'm loading I get multiple PageFinished and OverrideUrl events to be raised.
This is completely different behavior from Android WebView.
It's this behavior supposed to be like this?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…