I need to redirect certain App Websites to the main phone browser as webview is incomplete. This would typically be sites like Facebook.com.
These App Websites would be accessed by the user clicking on a link, such as Facebook Share link.
The code below is intended to intercept these clicks.
Unfortunately it both opens the main phone browser and navigates to the App Website url in my webview.
How do I prevent it from navigating in my webview.
These App Websites would be accessed by the user clicking on a link, such as Facebook Share link.
The code below is intended to intercept these clicks.
Unfortunately it both opens the main phone browser and navigates to the App Website url in my webview.
How do I prevent it from navigating in my webview.
B4X:
Sub wbv_WebContent_OverrideUrl (currentUrl As String)
Private thisWebView As WebView = Sender
If isAppSite(currentUrl) Then
webViewExtras1.Initialize(thisWebView)
'*** My current unsuccessful attempts to deal with it navigating to the page
webViewExtras1.StopLoading
webViewExtras1.Back
'***
StartActivity(phoneIntent1.OpenBrowser(currentUrl))
Return 'Don't try to navigate to this URL. My attempt to prevent it from navigating to the page
End If
End Sub