intercom-react-native not working on Expo SDK 53 | Community
Skip to main content

Hi guys, I am having problems to upgrade from expo 52 to expo 53 due to intercom issues.

In version 8.0.0, ios is not working due to 

 

❌  (ios/TakenosDevelop/AppDelegate.swift:1:2)

> 1 | #import <IntercomModule.h>
| ^ no macro named 'import'
2 | import Expo
3 | import React
4 | import ReactAppDependencyProvider

 

This is fixed on 8.5.0 but this version uses sentry Android SDK >= 8 and clashes with sentry-react-native that uses sentry Android SDK >=7.  I am using @sentry/react-native version 6.14.0(recommended by expo)

Here is a conversation related to the issue on sentry github: https://github.com/getsentry/sentry-react-native/issues/4688

The error i am seeing:

Error: Exception in HostFunction: No direct method <init>(Ljava/lang/String;ILio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ISentryExecutorService;Lio/sentry/ILogger;Lio/sentry/android/core/BuildInfoProvider;)V in class Lio/sentry/android/core/AndroidProfiler; or its super classes (declaration of 'io.sentry.android.core.AndroidProfiler' appears in /data/app/~~e_t5u2_KHpU_O40MDWSzsw==/com.takenos.staging-_FZGcoEeNe3nMaUnyu5wzw==/base.apk!classes8.dex), js engine: hermes

Any workarounds i could apply? 

Thanks in advance

Fran

Hey there ​@Francisco Goulu, Emily here from Support Engineering at Intercom 👋🏼

 

There have been recent compatibility issues between Intercom’s React Native wrapper and Expo SDK 53, but these were resolved by updating to the latest versions of both React Native and the Intercom iOS SDK.

It’s recommended to use the latest versions available: React Native releases and Intercom iOS SDK 19.0.0

 

Workarounds and Next Steps:

  • Ensure you are using the latest versions of both Intercom and React Native SDKs.
  • If you must use @sentry/react-native 6.14.0, you may encounter incompatibilities with Intercom 8.5.0+ due to the Sentry SDK version mismatch.
  • As a temporary workaround, some users have logged out of Intercom when the app goes to the background and logged back in on foreground, though this might be more relevant to iOS crash issues.
  • There is no official workaround for the Sentry SDK version clash documented in the sources. You may need to align Sentry SDK versions across dependencies or consider upgrading @sentry/react-native if possible.

If the issue persists after updating, it might be worth opening a ticket with our team directly for further investigation 💪🏼