Skip to main content
Back to plugins
@capgo/capacitor-intercom
Tutorial
by github.com/Cap-go

Intercom

Integrate Intercom live chat, help center, and support workflows in your Capacitor app

Guide

Tutorial on Intercom

Using @capgo/capacitor-intercom

Intercom Capacitor plugin.

Install

bun add @capgo/capacitor-intercom
bunx cap sync

What This Plugin Exposes

  • loadWithKeys - Initialize Intercom with API keys at runtime. Use this if you prefer not to configure keys in capacitor.config.
  • registerIdentifiedUser - Register a known user with Intercom. At least one of userId or email must be provided.
  • registerUnidentifiedUser - Register an anonymous user with Intercom.
  • updateUser - Update user attributes in Intercom.

Example Usage

loadWithKeys

Initialize Intercom with API keys at runtime. Use this if you prefer not to configure keys in capacitor.config.

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.loadWithKeys({} as IntercomLoadOptions);

registerIdentifiedUser

Register a known user with Intercom. At least one of userId or email must be provided.

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.registerIdentifiedUser({} as IntercomIdentifiedUserOptions);

registerUnidentifiedUser

Register an anonymous user with Intercom.

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.registerUnidentifiedUser();

updateUser

Update user attributes in Intercom.

import { CapgoIntercom } from '@capgo/capacitor-intercom';

await CapgoIntercom.updateUser({} as IntercomUserUpdateOptions);

Full Reference