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

Add fallback userID to Capacitor, Cordova, Xamarin, and Unity

Open philipphofmann opened this issue 4 years ago • 6 comments

Core or SDK?

Platform/SDK

Which part? Which one?

Capacitor, Cordova, Xamarin, and Unity

Description

Android and Cocoa use the installationId as a fallback for the userID if none is set. We should also document this behavior for Capacitor, Cordova, Xamarin, and Unity. For more context see https://github.com/getsentry/sentry-docs/pull/4201

Suggested Solution

Add the same note as in https://github.com/getsentry/sentry-docs/pull/4201 if needed.

Is it needed for

  • Capacitor (@jennmueng, please answer) ~* Xamarin (@bitsandfoxes or @bruno-garcia , please answer)~ Doesn't have a native SDK under it
  • Unity (@bitsandfoxes or @bruno-garcia , please answer)

philipphofmann avatar Sep 29 '21 11:09 philipphofmann

Routing to @getsentry/team-mobile for triage. ⏲️

getsentry-release avatar Sep 29 '21 11:09 getsentry-release

Makes sense. We should not only align that the hybrid SDKs report the same underlying user-id if nothing is set. I believe the right place to set it: https://docs.sentry.io/platforms/apple/enriching-events/identify-user/

bruno-garcia avatar Sep 29 '21 14:09 bruno-garcia

@bruno-garcia Should this be triaged as "Backlog"?

chadwhitacre avatar Oct 19 '21 22:10 chadwhitacre

(sentry-docs vs. sentry-[sdk], slightly different label dance, sorry :-/ )

chadwhitacre avatar Oct 19 '21 22:10 chadwhitacre

@philipphofmann Is this also relevant for Flutter and React Native?

lucas-zimerman avatar Apr 19 '22 18:04 lucas-zimerman

Yes,@lucas-zimerman, but we already updated the docs for Flutter and React Native, see https://github.com/getsentry/sentry-docs/pull/4201

philipphofmann avatar Apr 26 '22 14:04 philipphofmann

The note is present in all mentioned SDKs: https://docs.sentry.io/platforms/javascript/guides/capacitor/enriching-events/identify-user/ https://docs.sentry.io/platforms/javascript/guides/cordova/enriching-events/identify-user/ https://docs.sentry.io/platforms/unity/enriching-events/identify-user/ https://docs.sentry.io/platforms/dotnet/guides/xamarin/enriching-events/identify-user/

kahest avatar Nov 24 '22 16:11 kahest