analytics_flutter icon indicating copy to clipboard operation
analytics_flutter copied to clipboard

the reset not working

Open uziassantosferreira opened this issue 1 month ago • 1 comments

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

uziassantosferreira avatar Oct 24 '25 23:10 uziassantosferreira