A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello,
Microsoft Edge DevTools could be used for debugging MAUI Android Webview, please refer to the following documentation and steps:
Step 1. Add the following code to the MainActivity class to enable debugging of Android WebView.
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat)
{
Android.Webkit.WebView.SetWebContentsDebuggingEnabled(true);
}
}
Step 2: Build your application.
Step 3: Open the edge://inspect using the Edge browser and click the Inspect button below your Android device that appears on the page.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.