How to implement Intercom inside Ionic2?


#1

Can someone tell how can I implement Intercom inside Ionic2 app? I installed the plugin and added this code in app.component.ts

platform.ready().then(() => {(
      (<any>window).plugins.intercom.registerIdentifiedUser({userId: "1"});
      (<any>window).plugins.intercom.setLauncherVisibility('VISIBLE');
      (<any>window).plugins.intercom.setInAppMessageVisibility('VISIBLE');
      (<any>window).plugins.intercom.setPreviewPosition((<any>window).plugins.intercom.BOTTOM_RIGHT);
    });

Am I suppose to see Intercom bubble? User activity doesnt change inside Intercom dashboard so I would assume none of these works. I would appreciate any help.