-
-
Notifications
You must be signed in to change notification settings - Fork 354
Closed
Description
Description
The native SDK can give users information about crashedLastRun but RN SDK doesn't have such a feature. It might be useful for RN devs too.
Some user patched this feature in their app like this, but it's not working in the last RN SDK version.
RCT_EXPORT_METHOD(didCrashLastLaunch:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
if ([SentrySDK crashedLastRun]) {
resolve(@YES);
} else {
resolve(@NO);
}
}marandaneto, AronBe, LonelyCpp, janicduplessis and sleeper-luke
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done
Status
No status
Status
No status