config-plugin-react-native-intercom icon indicating copy to clipboard operation
config-plugin-react-native-intercom copied to clipboard

URGENT: App crash with Expo SDK49 [iOS]

Open MichaelLiuag opened this issue 1 year ago • 13 comments

This issue is happening when I try to use Intercom from @intercom/intercom-react-native.

image

Expo SDK: 49 @expo/config-plugins: ^7.2.5 @intercom/intercom-react-native: ^5.2.0

Same issue is coming even though I downgrade @intercom/intercom-react-native to ^4.1.0

This is very urgent issue and I hope someone can take a look at this issue ASAP.

MichaelLiuag avatar Aug 25 '23 08:08 MichaelLiuag

I have to run expo prebuild as well in case of using this module?

MichaelLiuag avatar Aug 25 '23 10:08 MichaelLiuag

@cmaycumber

MichaelLiuag avatar Aug 25 '23 12:08 MichaelLiuag

On my side I have no issue on IOS 16.0 SDK49 but I'm using a lower intercom version

"@intercom/intercom-react-native": "^4.0.1", "config-plugin-react-native-intercom": "^1.10.1", "expo": "~49.0.6", "@expo/config-plugins": "~7.2.5",

Screen Shot 2023-08-27 at 11 08 23 AM

LeoAnt02 avatar Aug 27 '23 15:08 LeoAnt02

On my side I have no issue on IOS 16.0 SDK49 but I'm using a lower intercom version

"@intercom/intercom-react-native": "^4.0.1", "config-plugin-react-native-intercom": "^1.10.1", "expo": "~49.0.6", "@expo/config-plugins": "~7.2.5",

Screen Shot 2023-08-27 at 11 08 23 AM

I tried the same version, but issue persists now.

  1. Did you run expo prebuild before running the application?
  2. Did you use displayMessenger() function to display the Intercom messenger in the application?

MichaelLiuag avatar Aug 30 '23 03:08 MichaelLiuag

Having the same issue, expo prebuild doesn't resolve - using same versions as @LeoAnt02

scerickson avatar Aug 30 '23 16:08 scerickson

@stefanerickson @MichaelLiuag I use a setup inspired by this #36

Hopefully this can help

LeoAnt02 avatar Sep 01 '23 00:09 LeoAnt02

Ran into the same issue but am having luck using Expo SDK 49.0.8 and intercom react native 3.0.3

"@intercom/intercom-react-native": "^3.0.3", "expo": "~49.0.8"

FWIW I still see this issue in the Expo Go client, but when I compile a release build using npx expo run:ios --configuration Release and run on simulator, everything works.

vanleuvenze avatar Sep 05 '23 16:09 vanleuvenze

since @intercom/intercom-react-native requires installation of native modules, you are not able to start your application in expo go without running expo prebuild, that allows you to see your changes on-the-fly, but you gonna get native folders such as android and ios. Or you can do dev-build for testing reasons, in this case you still will not be able to use expo go.

Friendly tip: I really enjoy using fast development flow with expo go, so I just disable the import of intercom for local development und enable it before I start the build process.

NazarDevsMedia avatar Sep 12 '23 19:09 NazarDevsMedia

On my side I have no issue on IOS 16.0 SDK49 but I'm using a lower intercom version

"@intercom/intercom-react-native": "^4.0.1", "config-plugin-react-native-intercom": "^1.10.1", "expo": "~49.0.6", "@expo/config-plugins": "~7.2.5",

Screen Shot 2023-08-27 at 11 08 23 AM

same for me with "@intercom/intercom-react-native": "^4.0.1", "config-plugin-react-native-intercom": "^1.10.1", "expo": "^49.0.10", "@expo/config-plugins": "~7.2.2" tested on real android and ios devices.

NazarDevsMedia avatar Sep 13 '23 15:09 NazarDevsMedia

Same here using packages as everyone else and did expo prebuild. I'm running on device with Expo Go

amitava82 avatar Sep 17 '23 03:09 amitava82

I'm not using Expo GO, I build the binaries with expo run:ios The issue might come from using Expo Go

LeoAnt02 avatar Sep 17 '23 13:09 LeoAnt02

I tried same as well, still crashing.

amitava82 avatar Sep 17 '23 14:09 amitava82

I have the same issue it's driving me nuts !!! Did you find a solution @MichaelLiuag ?

yonitou avatar Nov 22 '23 17:11 yonitou