TechBuzzPro

How to Integrate Intercom With Your App

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Integrating Intercom with your app means adding the Intercom Messenger so users can chat with support, and using the Intercom SDK to identify users and track events. The shortest working path is: create an Intercom workspace, get your app ID, install the official SDK for your platform, call the boot method with user details on login, and test in a staging build before releasing. You will need an Intercom account with admin access, your app's codebase, and the ability to add dependencies and rebuild the app.

What You'll Need

  • An Intercom workspace with admin permissions (to create an app and copy the app ID).
  • Your app's source code and build environment, plus permission to add SDK dependencies.
  • For web apps: access to edit the site's HTML or JavaScript bundle.
  • For mobile apps: the relevant project files for iOS (Xcode) or Android (Android Studio), and the ability to rebuild and sign the app.
  • A test user account so you can verify identification and messaging without affecting real users.

Menu labels in Intercom and in your development tools can differ slightly by version, device, or region, so treat the paths below as a guide and look for the closest matching option.

Step-by-Step

  1. Create or open your Intercom workspace. Sign in at intercom.com with an admin account. If you are starting fresh, complete the workspace setup so you have a place to configure the Messenger.
  2. Find your app ID. In Intercom, open Settings and look for the section that lists your workspace or app identifiers (often under Installation or Messenger settings). Copy the app ID; it is a short alphanumeric string that the SDK uses to connect your app to the correct workspace.
  3. Choose the right SDK for your platform. Intercom provides official SDKs for web (JavaScript), iOS, Android, and React Native, among others. Use only the official package from the vendor's documentation or the platform's standard package manager (npm, CocoaPods, Gradle). Avoid unofficial wrappers or modified packages.
  4. Install the SDK. For a web app, add the Intercom JavaScript snippet to your page template or bundle, placing it before the closing body tag so it loads after your main content. For iOS, add the Intercom pod or Swift package and run your dependency install. For Android, add the Intercom dependency to your Gradle file and sync the project. Follow the vendor's current installation page for the exact package name and version.
  5. Initialize the SDK with your app ID. In your app's startup code, call the Intercom initialize or configure method and pass the app ID you copied. This connects the SDK to your workspace but does not yet identify a user.
  6. Identify the user after login. When a user signs in to your app, call the Intercom login or boot method with a stable user identifier (such as your internal user ID) and, optionally, email and name. Use the same identifier every time so conversations and events stay attached to one profile. Do not call login before you have a user; for logged-out visitors, use the anonymous or visitor mode instead.
  7. Log out on sign-out. When the user signs out of your app, call the Intercom logout method so the next person on the device does not see the previous user's conversation history. This is especially important on shared devices.
  8. Add event tracking (optional but useful). Use the SDK's track method to record meaningful actions such as completing onboarding or upgrading a plan. Keep event names consistent and avoid sending sensitive personal data.
  9. Test in a staging build. Run your app with a test user, open the Messenger, send a message, and confirm it appears in your Intercom inbox. Check that the user's name and email show correctly and that logging out clears the session.
  10. Release and monitor. Deploy to production, then watch your Intercom inbox for new conversations and check your app's error logs for SDK initialization failures.

Common Mistakes

  • Using the wrong app ID, often from a test workspace, so messages land in the wrong inbox.
  • Calling login with a different identifier on each session, which creates duplicate user profiles.
  • Forgetting to log out on sign-out, leaving one user's conversations visible to another.
  • Installing an unofficial SDK package or a modified snippet, which can break or expose data.
  • Initializing the SDK too early, before the user is known, and then not updating the identity after login.
  • Sending sensitive personal data in event names or attributes that do not belong in a support tool.

Tips

  • Keep the app ID in your environment configuration rather than hard-coding it, so staging and production stay separate.
  • Use a stable internal user ID as the Intercom identifier; email addresses can change.
  • Test the Messenger on a real device, not only a simulator, to catch layout and keyboard issues.
  • Review what user attributes you send and limit them to what support actually needs.
  • Document the login and logout calls in your codebase so future changes do not break identification.

Troubleshooting

If the Messenger does not appear, first confirm the SDK initialized without errors by checking your app's console or logs. Verify the app ID matches the workspace you are checking. For web apps, make sure the snippet is not blocked by a content security policy or an ad blocker during testing. For mobile apps, confirm the dependency was added and the project was rebuilt, not just reloaded.

If messages arrive but the user shows as unknown, check that login is called after authentication and that the identifier is not empty. If you see duplicate users, compare the identifiers used across sessions. If the Messenger appears for logged-out users when it should not, review where initialization runs in your app lifecycle.

If nothing works after these checks, sign out and back in to your Intercom workspace, update the SDK to the latest official version, and consult the vendor's installation guide for your platform. Reinstalling the app on a test device can rule out a stale build, but note that clearing app data removes local state; do this only on a test device.

Frequently Asked Questions

Do I need a paid Intercom plan to integrate the Messenger?

Intercom offers a free trial and paid plans; the Messenger and SDK are part of the product, but some features depend on your plan. Check your workspace's plan details before relying on a specific feature.

Can I use Intercom in a mobile app and on the web at the same time?

Yes. Use the official SDK for each platform and the same app ID so conversations from both channels reach the same workspace. Keep user identifiers consistent across platforms.

What identifier should I pass to Intercom?

Use a stable, unique internal user ID from your own system. Avoid using something that can change, such as a display name, and do not send sensitive data you would not want in a support tool.

Does the SDK work without a user logged in?

Yes, you can run the Messenger for anonymous visitors, but you should switch to identified mode after login and log out when the user signs out.

How do I update the SDK later?

Update through your platform's package manager and follow the vendor's release notes. Test in staging before releasing, since major versions can change method names.

Where do I find my app ID?

In your Intercom workspace settings, look for the installation or Messenger section that lists your app identifier. Copy it exactly, without spaces.