-
-
Notifications
You must be signed in to change notification settings - Fork 354
Closed
Description
I wrapped setUserContext into function and call it in the ComponentDidMount of my app.
export const sentrySetUserContext = (user) => {
Sentry.setUserContext(getUserInfo(user));
};
const getUserInfo = (user) => ({
userID: user.id.toString(),
});
To test, I add a button which calls Sentry.nativeCrash().
I received the error in the Sentry console but without information about UserID.
It only shows my IP.
IOS version: 10.4.3
Sentry version: 0.21.1
I did not test on Android.
Metadata
Metadata
Assignees
Labels
No labels