Skip to content

Transactions are not created after applications activity is closed by Android #4634

@krystofwoldrich

Description

@krystofwoldrich

Description

When I enable Don't keep activities in the Android Developer menu (simulates behavior of low memory when the system will close the activity, but keeps the app process), the ReactNavigationIntegration stops creating spans after reopening the application.

Related to

/* We prevent duplicate routing instrumentation to be initialized on fast refreshes
Explanation: If the user triggers a fast refresh on the file that the instrumentation is
initialized in, it will initialize a new instance and will cause undefined behavior.
*/
if (RN_GLOBAL_OBJ.__sentry_rn_v5_registered) {
logger.log(
`${INTEGRATION_NAME} Instrumentation already exists, but register has been called again, doing nothing.`,
);
return undefined;

Metadata

Metadata

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions