intercom_flutter
intercom_flutter copied to clipboard
If a user from my app uses intercom, only their User ID is shown...
...but if they are coming from my website, their name is shown.
Is there something I'm overlooking? Am I not passing things (info, token, etc) correctly from my Flutter app to Intercom?
Attached are screenshots showing the difference.

Are you registering the user? https://pub.dev/documentation/intercom_flutter/latest/intercom_flutter/Intercom/registerIdentifiedUser.html
@Skinopathy-Brian-Kan For the users who are coming from the website, check if Intercom has linked any social Id (Facebook, Twitter, etc) on the user page.
I think on the website, Intercom track these things.
Are you registering the user? https://pub.dev/documentation/intercom_flutter/latest/intercom_flutter/Intercom/registerIdentifiedUser.html
Yes.
Intercom.registerIdentifiedUser(userId: uid, email: '')
@Skinopathy-Brian-Kan For the users who are coming from the website, check if Intercom has linked any social Id (Facebook, Twitter, etc) on the user page.
I think on the website, Intercom track these things.
If users are coming from the website, then I do not experience this problem; it's only if they are using Intercom from my app.
@Skinopathy-Brian-Kan
Check the card External Profiles on the Intercom regarding the user for which the name is getting displayed and share the screenshot.

Another question, are you using the intercom_flutter package for both the app and website? If not then check this how to update the name and other properties of the user in Intercom using intercom_flutter https://pub.dev/documentation/intercom_flutter/latest/intercom_flutter/Intercom/updateUser.html
Here is a screenshot of users whose names are displayed

To answer your question: I am only using the intercom_flutter package for just the app. I'll look more in-depth with that link you posted.
@deepak786 was there something you were expecting to see for the External Profiles card?
@Zazo032 yes, I am also registering them.
@Skinopathy-Brian-Kan but are you updating user after registering? Like the name etc.
It would be great if you can share the code.
Hello @deepak786
There is actually a fair bit of code, but the following snippets seem to be the most relevant.
void chatWithUs() async {
final User user = auth.currentUser;
final uid = user.uid;
_intercomRegister(uid);
}
// called the intercom Messenger
_intercomRegister(String uid) {
Intercom.registerIdentifiedUser(userId: uid, email: '');
Intercom.updateUser(name: fullName, email: currentUserEmail);
Intercom.displayMessenger();
}
}
@Skinopathy-Brian-Kan I need the sample that reproduces this issue. Then I will be able to check the issue.
Because looking at the code snippet above, everything seems correct.
Might be you can try by putting await before both registering and updating the user because they are the futures.