I am trying to use Sentry Native c/c++ SDK to report crashes. The problem is the SDK provides sentry_shutdown() method which needs to be invoked to flush the report to the sentry server before the showdown of the JUCE app.
Could someone tell me where should I put this method? I tried showdown(), systemRequestedQuit(), and none of them are called before the crash…
The sentry_shutdown() can’t be called earlier because it will remove the sentry instance.
If there is no easy solution. Which crash reporting method should we use in juce?