简体   繁体   中英

Navigated event doesn't fire up on specific pages using WebView - Xamarin Android C#

Could someone explain me why Navigated event in WebView doesn't fire up while searching stuff on https://m.olx.pl ? I'm using WebView from Xamarin.

I tried many other events and any of them fire up after i put some phrase in "Search" text box or when I navigate on this site.

You can use CustomRenderer and add this:

 public class AuthWebViewClient : WebViewClient
    {
        ...
        public override void OnPageFinished(Android.Webkit.WebView view, string url)
        {
            base.OnPageFinished(view, url);
            var url = request.Url;
        }
    }

Whenever the WebView begins loading a new page, and the page has finished loading. it will call OnPageFinished .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM