Skip to content

the reset not working #187

@uziassantosferreira

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions