segment-integrations / analytics-ios-integration-firebase

Segment's bundled integration for Firebase on iOS
MIT License
13 stars 95 forks source link

SEGFirebaseIntegration does not set Crashlytics UserId #93

Closed tristan-warner-smith closed 2 years ago

tristan-warner-smith commented 2 years ago

The current implementation is: Analytics.setUserID("SomeUserId")

However for Crashlytics to correctly associate crashes with a firebase user you also need to call: Crashlytics.crashlytics().setUserID("SomeUserId")

You can repro this by:

  1. Calling .identify(userID, traits: ["email": email])
  2. Triggering a crash
  3. Checking the Data tab on Crashlytics for the crash event and noting a lack of User.Id

If you set the Crashlytics User Id correctly you'll see the user section shown here (for Android)

Screenshot 2022-10-05 at 10 33 25
tristan-warner-smith commented 2 years ago

Raised against the wrong project.