Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView Navigation events are not firing on Window and Android #3857

Closed
msadeh opened this issue Dec 24, 2021 · 1 comment
Closed

WebView Navigation events are not firing on Window and Android #3857

msadeh opened this issue Dec 24, 2021 · 1 comment

Comments

@msadeh
Copy link

msadeh commented Dec 24, 2021

Description

Both Navigated and Navigating events are not being fire on both Windows and Android

Steps to Reproduce

Use the sample code that working on Xamarin but not on Maui

<ScrollView>
    <StackLayout>
        <!--Loading label should not render by default.-->
        <Label x:Name="labelLoading" Text="Loading..." IsVisible="false" />
        <WebView HeightRequest="1000" WidthRequest="1000" Source="https://dotnet.microsoft.com/apps/xamarin" Navigated="webviewNavigated" Navigating="webviewNavigating" />
    </StackLayout>
</ScrollView>
	void webviewNavigating(object sender, WebNavigatingEventArgs e)
	{
		labelLoading.IsVisible = true;
	}

	void webviewNavigated(object sender, WebNavigatedEventArgs e)
	{
		labelLoading.IsVisible = false;
	}

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Android 11, Windows

Did you find any workaround?

no

Relevant log output

No response

@msadeh msadeh added the t/bug Something isn't working label Dec 24, 2021
@msadeh msadeh closed this as completed Dec 24, 2021
@pkar70
Copy link

pkar70 commented Dec 31, 2021

Why this issue is closed? This event really doesn't fire.

@ghost ghost locked as resolved and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants