Skip to content

Session replay ends ~8 minutes after app is backgrounded #5372

@dalnoki

Description

@dalnoki

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.2.0

How does your development environment look like?

added internally

Sentry.init()

added internally

Steps to Reproduce

A customer reported unexpected behavior with session replay in React Native.
Their Sentry init includes:

sessionTrackingIntervalMillis: 1800000, // 30 minutes

They expected the session to stay alive for roughly 30 minutes of inactivity, but observed that the app was backgrounded at 34:58, and the replay ended at 42:37 so about 8 minutes after going to background.

Even though sessionTrackingIntervalMillis is 30 minutes, the replay stops much earlier (~8 minutes).

Expected Result

Replay should remain active (or resume) for up to the configured 30 minutes before timing out.

Actual Result

Replay ends roughly 8 minutes after backgrounding, regardless of the sessionTrackingIntervalMillis value.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions