highcharts / highcharts-ios

iOS wrapper for Highcharts.
Other
127 stars 39 forks source link

Error Logging #453

Open jogatea opened 2 weeks ago

jogatea commented 2 weeks ago

I've noticed in some cases that when I supply incorrect options or some incorrect format that the chart fails to load, but the HIChartViewDelegate viewDidLoad still gets called. I'm wondering if there is any way to log errors that the webview encounters and can be relayed back to the native code?

This is important because if something goes wrong and the chart doesn't load, JS function fails, or a property doesn't exist then we don't have any insight and can't rely on if it actually worked.

jogatea commented 3 days ago

Just following up, is there any way to do this currently? Would this be a feature request to log console errors to a native delegate?