Open Arron-Gill opened 1 year ago
Sentry.lastEventId()
isn't persisted for hard crashes, you are correct.
IIRC lastEventId
is persisted on Android and iOS, maybe we can leverage the RN bits for that, I'll check it.
Hi, do you have an update on this feature? I find it surprising that we can't tell if the application crashed in the previous session on react-native
@ludwig-pro Hi, thanks for your interest, we want to do this, but there is no closer plan yet.
👋 If you want to have this feature => https://github.com/a7ul/react-native-exception-handler
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 4.12.0
react-native
version: 0.69.3Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
N/A
Configuration:
(
import * as Sentry from "@sentry/react-native";
)I have following issue:
Tried calling
Sentry.lastEventId()
on the main screen of our app after a crash had happened and it returnedundefined
. Looks like event Id is not persisted?Steps to reproduce:
nativeCrash()
from "@sentry/react-native"Sentry.lastEventId()
and inspect value returned.Actual result:
undefined
Expected result:
Some sort of Id