Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercom opens with a default theme instead of custom one on first time open #232

Closed
iagormoraes opened this issue Oct 23, 2018 · 4 comments

Comments

@iagormoraes
Copy link
Contributor

The Intercom is opening with a default color theme and no header texts on first Intercom open. The expected behavior is to show the custom theme color and texts right on the first instance open.

//Example call
await Intercom.registerIdentifiedUser({ userId: user.userId });
await Intercom.updateUser({
            email: user.email,
            name: user.fullName,
            phone: user.phone
});
await Intercom.displayMessenger();
@iagormoraes
Copy link
Contributor Author

Just by calling await Intercom.registerUnidentifiedUser(); on app start do the trick.

@aibrahim3546
Copy link

@iagormoraes But this one create a anonymus user on the intercom user list. are they better way?

@iagormoraes
Copy link
Contributor Author

@iagormoraes But this one create a anonymus user on the intercom user list. are they better way?

@aibrahim3546 At the moment I only know this way to get the theme from intercom settings, I know this is just a workaround, maybe the developers from intercom SDK or the other maintainers from this repo can have a better solution.

@aibrahim3546
Copy link

@iagormoraes I found a solution for this. You can just call the registerIdentifiedUser({ userId: user.userId }) twice:

e.g:

Intercom.registerIdentifiedUser({ userId: user.userId }).then(() => {
  Intercom.registerIdentifiedUser({ userId: user.userId })
  .....
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants