Forms9Patch icon indicating copy to clipboard operation
Forms9Patch copied to clipboard

[Bug] Forms9Patch webview.toPDF crashes without exception on iOS-Device

Open technik5 opened this issue 4 years ago • 6 comments

Description

Hello sir Baskren, the line in your example: if (await webView.ToPdfAsync("output.pdf") is ToFileResult pdfResult) crashes instantly even if the html-source of the webview contains only " "

the bug seems only to exist on iOS and not on Android, where everything works as expected. The webview displays everything normaly. Even in a try - catch - block it won't be catched...could it be a problem with rights?

Steps to Reproduce

  1. Load all nuget-files for pcl,android and ios
  2. create a xaml-page with Forms9Patch similar to the example
  3. copy code of examplefile
  4. create app on physical iOS-Device
  5. click-sharebutton -> crash

Expected Behavior

getting a pdf to share

Actual Behavior

crash without exception to homescreen of ios-device

Basic Information

  • Version with issue:current
  • Last known good version:none
  • IDE:
  • Platform Target Frameworks:
    • iOS: 14.4
  • Affected Devices: iOS

technik5 avatar Sep 04 '21 06:09 technik5

I have a similar problem but with try catch block i got this exception: "WebView has zero width or Height". On Android my code runs perfectly.

I'm using iOS 15.0 with a Physical device.

System : Xcode 13.1, Visual studio 8.10.13

XamMattia83 avatar Nov 10 '21 14:11 XamMattia83

Same issue on ios 14.4 with physical device. Exception "WebView has zero width or Height".

Antonio2103 avatar Jan 03 '22 16:01 Antonio2103