webview navigation event is firing all the time in ios

I have simple xamarin.Forms application, it contains just a webview and ActivityNavigator, I am doing the following:
When "Navigation" event is fire, I make the indicator visible and running, and hide the webview, then when the "Navigated" event is fired I make the indicator unVisible and I show the webview.
This behavior is prefect on android devices, but on ios the "navigation" event fires frequently, and the "navigated" event fires only once and never fire again.

any ideas?

Tagged:

Answers

  • IliaDudarevIliaDudarev USMember

    Stuck with the same problem.
    On iOS Navigated event is fired on each iframe in the page.
    On Android it isn't.
    And I can't see a way to distinct real navigation events from wrong iframe's ones.

  • MohammadShabanMohammadShaban USMember ✭✭

    @IliaDudarev said:
    Stuck with the same problem.
    On iOS Navigated event is fired on each iframe in the page.
    On Android it isn't.
    And I can't see a way to distinct real navigation events from wrong iframe's ones.

    I did the following:
    In each navigation event fire, I see the URL that the webview will navigate to, and I found the pattern of the links included in the iframes, they all were ads.google links,
    may be you can do the same

Sign In or Register to comment.