Implementing intercom using angular 10

1.3k Views Asked by At

I am working on angular 10 application I want to implement intercom in my application. There is nothing in the console and I have installed ng-intercom for it but its not working. No widget appear on my screen there is nothing in iframe as well. Here is my code

App Module

IntercomModule.forRoot({
            appId: 'h******8',
            updateOnRouterChange: true
        })

Here is my code on home component

  ngOnInit() {
        this.intercom.boot({
            name: "superadmin,
            email: "[email protected]",
            created_at : '1312182000'
          });
}

I am using this code but my page always blank no widget anywhere to click on. Here is the screen shot. Even there is no error on console as well the ping api return ok response.

home page image

1

There are 1 best solutions below

0
On

As I can see you are not sending user_hash, in your case you need a user_hash with email and secret, take a look at this page for more info on how to get that.

Also, check warnings in the console for intercom warnings.