locked
WebView not firing WebViewNavigated event RRS feed

  • Question

  • User388335 posted

    I am using WebView as a base class for a PDFViewer. I have renderers for iOS and Android. I am not getting a WebViewNavigated event. I assumed that the base class would fire the event - but I am not seeing it.

    Wednesday, June 17, 2020 4:46 PM

All replies

  • User369979 posted

    If you instantiate a new webview in the renderer, the Navigated in forms won't work. We need to register it on each platform to monitor the ending behavior. iOS has a navigation delegate:

    webview.NavigationDelegate
    

    We need to implement the client on Android:

    webView.SetWebViewClient();
    

    Define an extra event in the webview on Forms and call this event on each platform from the delegate(client).

    Thursday, June 18, 2020 3:34 AM