-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Labels
platform-iosSpecific to iOS platformSpecific to iOS platformsupportAsking for help writing an applicationAsking for help writing an application
Description
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:
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
Labels
platform-iosSpecific to iOS platformSpecific to iOS platformsupportAsking for help writing an applicationAsking for help writing an application