For React Native:
I’m seeing the following behavior. Both native exceptions and RavenJS (pure JavaScript exceptions) are only reported to Sentry when the user re-launches the app. If they don’t re-launch, it doesn’t seem to log the errors.
Makes sense for a native crash because I imagine Sentry can only report it after it crashed the app.
But for pure JavaScript exceptions I would expect them to be reported immediately.
Is this expected behavior?
My basic setup:
index.js:
Sentry.config("my link here", {
deactivateStacktraceMerging: true,
logLevel: SentryLog.Debug,
disableNativeIntegration: false,
handlePromiseRejection: !__DEV__
}).install();
and I use Sentry.captureException to log caught exceptions.
(I also use CodePush, if that’s relevant.)