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

Persist user information across app launches

Open romtsn opened this issue 2 years ago • 0 comments

Right now Sentry.setUser(user) is not persisted over app starts. Thus any captured events which occur at the app start (but before .setUser() is called) will result in an anonymous user.

This is already the case for AnrV2EventProcessor, we should do the same for MainEventProcessor but guard it with a flag. If this gets implemented around v7 milestone time, then we should include it there and enable the flag by default.

We should make sure this is not happening for plain Java Backend apps.

romtsn avatar May 17 '23 14:05 romtsn