Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User ID is left blank on Android #3302

Open
espenrl opened this issue Apr 15, 2024 · 2 comments
Open

User ID is left blank on Android #3302

espenrl opened this issue Apr 15, 2024 · 2 comments
Labels
Bug Something isn't working MAUI

Comments

@espenrl
Copy link

espenrl commented Apr 15, 2024

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

8.0.4

OS

Android

SDK Version

4.4.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

Setup a MAUI project configured for Sentry. Do not override user configuration - hence standard behavior is to be expected with regards to user information in Sentry events.

Expected Result

According to https://docs.sentry.io/platforms/dotnet/guides/maui/enriching-events/identify-user/#id

If you don't provide an id, the SDK falls back to installationId, which the SDK randomly generates once during an app's installation.

Actual Result

User ID is left blank/null in Sentry events.

On iOS the user ID is set to a randomly generated guid and hence works according to documentation.

@bitsandfoxes
Copy link
Contributor

bitsandfoxes commented Apr 15, 2024

Hi @espenrl, thanks for raising this. Looks like a bug - the behaviour should indeed be the same on all platforms.

@bitsandfoxes bitsandfoxes added Bug Something isn't working MAUI labels Apr 15, 2024
@espenrl
Copy link
Author

espenrl commented Apr 16, 2024

This logic doesn't seem to be implemented at all for Windows.

And for Android it actually seems to be implemented already, but for some reason doesn't work.

https://github.com/search?q=repo%3Agetsentry%2Fsentry-java+user.setid&type=code

And here is for iOS

https://github.com/search?q=repo%3Agetsentry%2Fsentry-cocoa+%22userid+%3D%22&type=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working MAUI
Projects
Status: No status
Status: No status
Development

No branches or pull requests

2 participants