Skip to content

Issue: Intercom Flutter works on Android but not on iOS (no console errors) #595

@JesusHdez960717

Description

@JesusHdez960717

Description

I have successfully integrated Intercom Flutter in my application, and it works perfectly on Android. However, on iOS, the messenger does not open and only shows the following error screen:

Image

The issue is particularly confusing because:

  • No errors are shown in the Flutter console.
  • No exceptions are thrown.
  • All Intercom-related calls appear to execute correctly.

Despite this, the Intercom Messenger never opens on iOS.


Environment

  • Package: intercom_flutter
  • Version: 9.4.22
  • Platform affected: iOS
  • Platform working as expected: Android

Initialization

try {
  await Intercom.instance.initialize(
    Environment.env.intercomAppId,
    iosApiKey: Environment.env.intercomIOSApiKey,
    androidApiKey: Environment.env.intercomAndroidApiKey,
  );
} catch (exc, stackTrace) {
  // Report error
}

Push Token Setup

try {
  final firebaseMessaging = FirebaseMessaging.instance;
  final String? intercomToken = Platform.isIOS
      ? await firebaseMessaging.getAPNSToken()
      : await firebaseMessaging.getToken();

  if (intercomToken != null) {
    await Intercom.instance.sendTokenToIntercom(intercomToken);
  }
} catch (exc, stackTrace) {
  // Report error
}

User Login

try {
  await Intercom.instance.loginIdentifiedUser(
    userId: _userPhone,
  );
} catch (exc, stackTrace) {
  // Report error
}

Opening the Messenger

await Intercom.instance.displayMessenger();

Additional Notes

At this point, I am unsure what might be misconfigured or missing on the iOS side. Since no errors are logged and the same implementation works correctly on Android, it is difficult to determine where the problem originates.

Any guidance on what could be causing this behavior on iOS, or what additional configuration/logging I should check, would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosSpecific to iOS platformsupportAsking for help writing an application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions