Open AbdullahChauhan opened 1 week ago
You cannot login again the user if the user is already logged in.
To update the email after loginUnidentifiedUser
, maybe you need to use updateUser
API.
Hey @deepak786 Thanks for replying to my question.
No, we can't update the anonymous user.
loginUnidentifiedUser
--> updateUser
Error I'm getting: You cannot update the email of an anonymous user. Please call registerIdentified user instead. The email: test@xyz.com was NOT applied
@deepak786 So here's the updated flow I tested but still there's no email update on the Intercom chat USER DATA:
loginUnidentifiedUser
updateUser
because the user is currently anonymousUser id
and identity similar toUser xxxx
loginIdentifiedUser
with the user email. Note: I'm not calling the logout
here before loginIdentifiedUser
because I want to maintain the previous anonymous user chat history to this registered userupdateUser
with user email after loginIdentifiedUser
but still no email update!Can you please try out these steps and let me know If something I'm still missing here!!!
Plugin version: 9.2.0 Flutter version: 3.24.5 Platform: Android
Then you need to check with the Intercom support team about how to convert an unidentified user to an identified user maintaining the chats.
@deepak786
Actually while shifting from anonymous to register user, the chat is maintaining but the problem is User email is not updating in the User data and since I'm calling loginIdentifiedUser(email: email)
email should be updated in the Chat support!
It means yourloginIdentifiedUser(email: email)
call is ignored as there is already a logged-in user (unidentified). So please check with the Intercom support team for solutions or alternatives.
Yeah, It seems like the call with the email is ignored because user is already registered with user id. Let's keep the issue open. I'll get back here after confirmation from the support. Thanks!
Here's the steps currently I've implemented in my app but things are not working as expected:
loginUnidentifiedUser()
loginIdentifiedUser(email: user.email)
fetchLoggedInUserAttributes()
Am I missing something here?
Plugin version: 9.2.0 Flutter version: 3.22.3