[Android] Loading the captured screenshot from webview content to Image control does not visible
Description
Loading the captured screenshot from webview content to Image control does not visible, — Image is not rendered properly while stream get from screenshot of the webview content. This issue does not occur in Debug mode or with .NET 9.0. the problem appears to be a regression or behavioral change in .NET 10.0 Release builds, preventing the expected screenshot functionality in production scenarios.
Steps to Reproduce
- Run the Application WebViewSample.zip
- Build and deploy the app using .NET 10.0 in Release mode.
- Tap the Capture button below the WebView.
- Observe that no screenshot image appears.
Link to public reproduction project repository
No response
Version with bug
10.0.0-preview.5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
This issue has been verified in Visual Studio Code 1.100.3 with MAUI versions (10.0.0-preview.5.25306.5, 10.0.0-preview.1.25122.6 & 9.0.80). This issue has been reproduced on the net10.0 versions with the release mode on the Android platform. The problem is not reproducible in MAUI version 9.0.80 and debug mode on net10.0 versions.
What version of the Android emulator was this run on?
What version of the Android emulator was this run on?
@mattleibow Tested on Android 11 Nexus 5x API 30
So somehow net10 release is ot capturing the webview?
Is the image corrupted or is there no content? Also, do other controls work? like a button?
Very weird how a sdk update would suddenly not be able to capture a specific control in a specific scenario on android.
@jonathanpeppers does this even sound like something that can happen via a sdk update?
Oh wait, this is also a maui .net 10? I wonder if there were changes to screenshots in net10 maui. Let me see.
EDIT:
Does not seem to have any Android changes.