Open XamMattia83 opened 2 years ago
I have very similar issue with the Android - nothing happens. Investigating.
Okay, here's the fix that I made:
1) forked PdfService for easier editing. 2) enclosed the webview construction and initialization in the Device.InvokeOnMainThreadAsync() block.
That resolved the 'doing nothing' problem. Apparently, Webkit's WebView MUST be initialized on the main thread.
FYI - the same problem was on both Android and iOS, so you will have to make changes in the both of ToPDF() implementations.
Description
On Real iOS devices, the await html.ToPdfAsync call doens't return 100% of the time and freeze the UI main thread On Android it works.
Steps to Reproduce
Expected Behavior
the called Task must return
Actual Behavior
it doesn't return 100% of the time.
Basic Information
Screenshots
Reproduction Link - a link to a small demo project that reproduces this issue
Workaround