WebView Navigated Event Not Triggered in .NET MAUI
Manjunath Vadigeri
0
Reputation points
I am experiencing an issue with the WebView
control in my .NET MAUI app where the Navigated
event does not fire after navigation.
Here’s the scenario:
- The
Source
property of theWebView
is set to a valid URL. - I have subscribed to the
Navigated
event in code behind - Despite this, the
Navigated
event handler is not invoked after the navigation is completed. - The
Navigating
event is triggered as expected.
I am trying to implement a loading activity indicator while the webpage is being loaded. The activity indicator is made visible when Navigating
is triggered, but never goes off since Navigated
event is not getting triggered.
Troubleshooting Done:
- Verified that the
Navigated
event is subscribed properly. - Ensured the URL is valid and accessible via a regular browser.
- Confirmed platform-specific configurations:
- Android:
INTERNET
permission is present inAndroidManifest.xml
.
- Android:
Why is the Navigated
event not being triggered, and how can I resolve this issue? Any insights or solutions would be greatly appreciated!
Sign in to answer