Closed shubhamdeol closed 1 year ago
Hi, we currently don't support this, but we will discuss it internally and let you know.
You could add this functionally manually by saving the user information and setting it when you initialize the Android SDK.
Thanks for your response.
yes. I was thinking of storing user info in shared preferences and setting it when i initialise android SDK. Having this supported by Sentry could have been better.
Hi @shubhamdeol, thanks for providing this valuable feedback! I fully agree, ideally the SDK can handle this automatically for you. As it makes sense to implement this across all mobile SDKs, see the related issue here..
@shubhamdeol we're considering a more general approach of persisting different scope information across app launches, please track it in #120
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.3.1
react-native
version: 0.68.5Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
sentry issue link
Configuration:
(
@sentry/react-native
) js sidenative side MainApplication.java
I have following issue:
If crashes happens before javascript bundle load and captured by native init setup done in MainApplication. It does not carry user information captured in last logged in user session.
For example: If user using the app I set his user id to uniquely identify the user. If a crash occurs on next app session before js load I want to get the cached user id from previous session. I suppose this should be reported to us instead of not giving any user info on App Start crash.
Steps to reproduce:
Actual result:
Expected result: