Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion android/src/main/java/io/sentry/RNSentryModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ public void startWithDsnString(String dsnString, final ReadableMap options, Prom
sentryClient.addEventSendCallback(new EventSendCallback() {
@Override
public void onFailure(Event event, Exception exception) {

// This needs to be there, otherwise in case of not internet the users app will not
// crash since we do not propagate the error further.
RNSentryEventEmitter.sendEvent(reactContext, RNSentryEventEmitter.SENTRY_EVENT_STORED, new WritableNativeMap());
RNSentryEventEmitter.sendEvent(reactContext, RNSentryEventEmitter.SENTRY_EVENT_SENT_SUCCESSFULLY, new WritableNativeMap());
}

@Override
Expand Down