Skip to content
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

Error Logging #453

Open
jogatea opened this issue Nov 7, 2024 · 2 comments
Open

Error Logging #453

jogatea opened this issue Nov 7, 2024 · 2 comments
Labels

Comments

@jogatea
Copy link

jogatea commented Nov 7, 2024

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
Copy link
Author

jogatea commented Nov 18, 2024

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?

@MikolajMichalczak
Copy link
Contributor

Hello @jogatea,
Apologies for the delayed response, but we didn’t plan to implement such functionality.
For now, I recommend trying this solution: you can connect the Safari browser on your Mac to the WKWebView and access the console. Open the "Develop" tab in Safari, and while the iOS Simulator is running with the WKWebView open, just click it to open the console.

Let me know if this helps with your issue and if it’s sufficient for your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants