Skip to content

Problem figuring out when to call update() #231

@ctataryn

Description

@ctataryn

I have the following usage pattern:

  • When the user is on my login page, I do not have {{intercom-io}} loaded in my template
  • When the user logs in, session data is set into the intercom.user object
  • A page is loaded that does have the {{intercom-io}} helper loaded

The problem is that intercom.isBooted is not true when I go and set the user data as the template hasn't loaded {{intercom-io}} yet.

If I refresh the page, everything looks right, my current user is displayed when I click on the messenger and get the "Hi <username> 👋 " message instead of "Hi there 👋"

Can anyone suggest where the best place, in my Ember app, I could place an intercom.update() call so that my messenger is loaded with the current user data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions