-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Bug] Sharing with webView.ToPngAsync to e-mail generate blank image #92
Comments
I tried sharing https://github.com/ and https://clientsfromhell.net/ with WhatsApp and a long blank image instead of the expected. I know this behavior would be normal in SPA or some kind of image rendering issue. Both links are not SPA but the second problem could be affected. So I used http://tanaconta.com.br/ that is more static and the issue here is that only shows the first part of it, not showing the company 0800 at the bottom for example. |
Both e-mail and Whatsapp PNG with a static html generate the image with a long blank space on bottom.
|
I had several problems, both using "HTML to a PDF" and "HTML to PNG". I came to the conclusion that PDF / PNG is being generated BEFORE HTML finishes rendering. I had several problems, tested it in different ways, and sometimes it worked, sometimes not. On iOS, it even got stuck on Spinning when generating the PDF. To definitely resolve the problem, I displayed the HTML in a WebView first, and then on that screen I added a button to export to PNG or PDF. Since WebView already displayed HTML before generating PDF / PNG, it now worked 100% of the time on both iOS and Android. |
Description
When generating a png with webView.ToPngAsync is attached a blank image to the e-mail.
Steps to Reproduce
Expected Behavior
Attached website as a image.
Actual Behavior
Attached blank image
Basic Information
All tests above in Android, both emulator and physical device.
Also happens in a Enterprise
Reproduction Link - a link to a small demo project that reproduces this issue
https://github.com/farukaf/Xamarin-Forms9Patch
The text was updated successfully, but these errors were encountered: