Skip to content

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Sep 9, 2025

Resolves #2268

Problem

AnalyticsSessionInfo.userId cannot be used on all platforms - i.e. Switch. We need to find a proper replacement. Ideally one, that works on all platforms.

Proposal

To unblock running the SDK, check which platform we're running on before calling into AnalyticsSessionInfo.userId;

Context

Console are basically treated as desktop platforms from the SDK's POV. When supported by sentry-native the Sentry.Native Configure gets called to handle the native initialization and scope sync setup.

Follow up on this with fetching installation ID from the native layer. Relies on: getsentry/sentry-native#1324

Copy link
Contributor

github-actions bot commented Sep 9, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Fallback for user ID on console ([#2309](https://github.com/getsentry/sentry-unity/pull/2309))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against c91b85d

@bitsandfoxes bitsandfoxes changed the title feat: Unified mechanism for generating user ID feat: Fallback for user ID on console Sep 11, 2025
@bitsandfoxes bitsandfoxes marked this pull request as ready for review September 11, 2025 09:52
cursor[bot]

This comment was marked as outdated.

@bitsandfoxes bitsandfoxes merged commit 0e42a08 into main Sep 12, 2025
17 of 18 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/default-user-id branch September 12, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New mechanism for generating User.Id
2 participants