Skip to content

Commit 60cd1e6

Browse files
committed
Fix #6 - Always send crashes because we prevent duplication in raven plugin
1 parent 01a980c commit 60cd1e6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ios/RNSentry.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,6 @@ - (void)setReleaseVersionDist:(SentryEvent *)event {
206206
[self injectReactNativeFrames:event];
207207
[self setReleaseVersionDist:event];
208208
};
209-
client.shouldSendEvent = ^BOOL(SentryEvent * _Nonnull event) {
210-
// We don't want to send an event after startup that came from a NSException of react native
211-
// Because we sent it already before the app crashed.
212-
if (nil != event.exceptions.firstObject.type &&
213-
[event.exceptions.firstObject.type rangeOfString:@"RCTFatalException"].location != NSNotFound) {
214-
NSLog(@"RCTFatalException");
215-
return NO;
216-
}
217-
return YES;
218-
};
219209
[SentryClient setSharedClient:client];
220210
[SentryClient.sharedClient startCrashHandlerWithError:&error];
221211
if (error) {

0 commit comments

Comments
 (0)