You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking through the implementation of this integration and noticed that it does not override Integration.reset().
Would it make sense to reset the Firebase client in this method? I was thinking either by calling FirebaseAnalytics.resetAnalyticsData() or simply setting the user ID to null with FirebaseAnalytics.setUserId(null). This way, the user can be cleared when they log out by calling Segment's Analytics.with(context).reset()
@Override
public void reset() {
super.reset();
firebaseAnalytics.resetAnalyticsData();
OR
firebaseAnalytics.setUserId(null);
logger.verbose("firebaseAnalytics.reset();");
}
I was looking through the implementation of this integration and noticed that it does not override
Integration.reset()
.Would it make sense to reset the Firebase client in this method? I was thinking either by calling
FirebaseAnalytics.resetAnalyticsData()
or simply setting the user ID to null withFirebaseAnalytics.setUserId(null)
. This way, the user can be cleared when they log out by calling Segment'sAnalytics.with(context).reset()
See:
The text was updated successfully, but these errors were encountered: