Skip to content

feature(react-native): support native crash attributes after dispose and re-init - #411

Open
KishanPRao wants to merge 1 commit into
mainfrom
feature/improve-attr-handling
Open

KishanPRao wants to merge 1 commit into
mainfrom
feature/improve-attr-handling

Conversation

@KishanPRao

Copy link
Copy Markdown
Collaborator

Summary

Native crash reports now carry the attributes and attachments of a client created after dispose.

Changes

  • CrashReporter.ts: hand the running native crash reporter to a client created after dispose, blank attributes only the previous client set, keep the first client's url and database path and warn when they differ.
  • BacktraceClient.ts: release the client's own earlier crash reporter when the same client initializes again.
  • BacktraceReactNative.java: let a later client replace the attributes passed at init, keep the device id and error type fixed from start.
  • nativeCrashReporterReinitializationTests.spec.ts: new, cover dispose and re-init, two live clients, a changed url or database path.

ref: BT-7531

@KishanPRao
KishanPRao requested a review from melekr October 9, 2026 12:17
@KishanPRao KishanPRao self-assigned this Oct 9, 2026
@KishanPRao KishanPRao added the enhancement New feature or request label Oct 9, 2026
@KishanPRao
KishanPRao marked this pull request as ready for review October 9, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants