The app freezes and crashes on iOS after opening an in-app message and swiping left to right to dismiss the UI | Community
Skip to main content

I'm using React Native 0.78.3 and using Intercom SDK version @intercom/intercom-react-native 8.6.0. While most features work correctly, the app freezes and crashes on iOS after I open an in-app Intercom message and swipe left to right (from the left edge of the device) to close the Intercom UI View.

 

Reproduction Steps

  1. Launch the app on iOS.

  2. Trigger an in-app Intercom message.

  3. Try to swipe left to right (from the left edge of the device) to close the Intercom UI View.

  4. App becomes unresponsive and eventually crashes.

We’ve tried on other apps that are using the Intercom SDK and see that the issue is happening. 

The issue was fixed in @intercom/intercom-react-native 7.2.1 https://github.com/intercom/intercom-react-native/releases/tag/7.2.1 but it happens again on later versions. 

 

Updated

 

I’ve tried to upgrade to the latest version of @intercom/intercom-react-native 9.1.1 and the issue frozen whole app does not happen anymore but all the buttons in the intercom window are still frozen and we can’t not do any interactions even tapping the close button to close the intercom chat except swiping down to dismiss. 

 

Please help me take a look at this issue because it’s effecting thousands of users and also let me know if I can provide any further information for you guys. Thanks a lot.

I would like to confirm that after bumping from @intercom/intercom-react-native 8.6.0 to 9.x, the close button in the Intercom articles is blocked, as the author writes above:

> we can’t not do any interactions even tapping the close button to close the intercom chat except swiping down to dismiss. 

We have not found any solution to this. It would be nice if that would be fixed soon as this issue is blocking us from migrating to Intercom 9.


Hi ​@Selma Paul here from support engineering to help you out 🤝 

Thanks for the detailed report and for testing 9.1.1. I’ve reproduced the issue you’re seeing. The problem is caused by iOS’ system edge-swipe back gesture activating under the Intercom view, which can interfere with touches. We’re investigating a fix in the SDK.
For immediate relief, please disable the iOS edge-swipe back gesture only while the Intercom UI is visible, then re-enable it on dismiss. This preserves swipe-down and the Close/X button while eliminating the freeze.
Also update to @intercom/intercom-react-native@9.1.2 and clean-install iOS pods to avoid unrelated issues. I’ll keep you updated as soon as we land a permanent SDK fix.


Hi ​@Paul Byrne , thank you so much for your reply, we’ve tried to disable edge-swipe but the UI is from the Intercom IOS SDK, we can not interfere with it. Please keep us updated on this issue. 😉