Skip to content

the reset not working #187

Open
Open

Description

@uziassantosferreira

Even after resetting and adding a different user, it still sends the old one.

await analytics?.reset()
   final userTraits = UserTraits();
    userTraits.name = userProfile.userName ?? '';
    userTraits.email = userProfile.email;
    userTraits.custom = {
      'profile_id': userProfile.profileId,
      'subscription_id': userProfile.subscriptionId,
      'subscription_name': userProfile.subscriptionName,
      'language': _getDeviceLanguageISO(context),
    };

    final result = await analytics?.identify(
      userId: userProfile.userId,
      userTraits: userTraits,
    )

when i logout the user i try to use reset and when i login again i call the identify but still send the old userTraits

Activity

  1. uziassantosferreira commented on Oct 29, 2025

    @uziassantosferreira
    Author

    anyone can help? we are using the last version

  2. lazytesting commented on Mar 12, 2026

    @lazytesting

    We see the same issue, after calling reset() our events still contains user_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions