dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Screenshots taken using IScreenshot.CaptureAsync don't include popups or visible alerts #23731

Open MauiUIui opened 4 months ago

MauiUIui commented 4 months ago

Description

It's pretty much obvious. More details here. The link is one of an issue I opened in the Community toolkit's repo but it actually seems like a MAUI one. The same happens in case with alerts displayed using "DisplayAlert"

Steps to Reproduce

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

I wish there is one as I really need this yesterday

Relevant log output

No response

github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

MauiUIui commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

* [CaptureAsync() doesn't save Maps content (#12876)](https://github.com/dotnet/maui/issues/12876),  similarity score: 0.77

Closed similar issues:

* [Screenshot capture does not work for Blazor MAUI (#9718)](https://github.com/dotnet/maui/issues/9718),  similarity score: 0.74

* [Screenshot dont work on IOS views (#18435)](https://github.com/dotnet/maui/issues/18435),  similarity score: 0.74

* [Screenshot doesn't work on iOS (#9866)](https://github.com/dotnet/maui/issues/9866),  similarity score: 0.74

* [Screenshot (Essentials API) not working in Windows platform (#5378)](https://github.com/dotnet/maui/issues/5378),  similarity score: 0.73

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

No, nothing here. Now what?

Zhanglirong-Winnie commented 3 months ago

Hi, @MauiUIui We would like to reproduce your issue. Could you provide a sample project and more information? Looking forward to your reply.

MauiUIui commented 3 months ago

Hi, @MauiUIui We would like to reproduce your issue. Could you provide a sample project and more information? Looking forward to your reply.

No sorry. The linked community toolkit issue has one in the comments though.

PS: tbh, it's very easy to reproduce yourself, steps are there.

QianaJiao commented 3 months ago

I change and use this repo: https://github.com/dotnet/maui-samples/tree/main/8.0/PlatformIntegration/PlatformIntegrationDemos Then I repro this issue on the latest 17.11.0 Preview 7.0 (8.0.80 & 8.0.40 & 8.0.3) on android and Windows platform. Animation

SOMUCHDOG commented 2 months ago

I believe this is a problem with the Microsoft.Maui.Media Library. I am having a similar issue on 2 views, one with a map like map example and another with a SkiaSharp UI library.

When calling Screenshot.CaptureAsync(). It attempts to recreate the view and does not finish.