sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Replay does not resume after returning from background (missing app state crumbs)

Open krystofwoldrich opened this issue 1 year ago • 2 comments

https://sentry-sdks.sentry.io/replays/c8171926005a4b38841400f84a697812 https://sentry-sdks.sentry.io/replays/d5b3927c103e4873b373b97d5f3b49ba

When the RN sample app is pushed to background/under lock screen the replay is paused but not resumed.

Most of the times the app state breadcrumbs are missing (seems like a race condition).

When the app return to foreground a new replay is started.

krystofwoldrich avatar Aug 26 '24 16:08 krystofwoldrich

@krystofwoldrich, what is the sessionTrackingIntervalMillis value that you're using in the samples?

The replay is meant to start a new session after some time in the background.

brustolin avatar Aug 27 '24 11:08 brustolin

Thank you, I've not realized that, I'll double check.

krystofwoldrich avatar Aug 28 '24 12:08 krystofwoldrich

@krystofwoldrich any progress on this one?

brustolin avatar Sep 04 '24 12:09 brustolin

This is not an issue. It was a problem in the sample configuration where the time between sessions was very short.

brustolin avatar Oct 21 '24 13:10 brustolin