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

Support unhandled Kotlin Native Exceptions #1575

Open
rickclephas opened this issue Aug 25, 2023 · 1 comment
Open

Support unhandled Kotlin Native Exceptions #1575

rickclephas opened this issue Aug 25, 2023 · 1 comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature

Comments

@rickclephas
Copy link

Description

When using Bugsnag in an iOS project using Kotlin Native we use the Bugsnag.notify method to record unhandled NSExceptions (which are created from the unhandled Kotlin exceptions).
Up until v6.26.2 this has been working quite well. However since v6.26.2 the unhandled property on the event no longer controls whether the event is stored to disk (#1549). This results in the exceptions being lost since the app immediately terminates after the notify call.

Describe the solution you'd like
I would like to request a parameter or a method that will force the exception to be written to disk.
So something like Bugsnag.notifyFatal or event.isFatal = true would be great.

P.S. I can create a PR for this, just let me know what API best fits the Bugsnag Cocoa library.

Describe alternatives you've considered
I am currently "overriding" the originalUnhandledValue to return the modified unhandled value. Which obviously isn't ideal.

@mclack
Copy link

mclack commented Aug 29, 2023

Hi @rickclephas
Thanks for bringing this to our attention. We're currently looking into this and will make sure to post any updates on this thread.

@mclack mclack added feature request Request for a new feature backlog We hope to fix this feature/bug in the future labels Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants