Our team has successfully integrated Intercom into the React Native framework we use to create apps for both Android and iOS. An open source library that was a nice kickstarter to get this going was the react-native-intercom package (https://github.com/tinycreative/react-native-intercom). Some interesting things we found along the way are detailed below in hopes the Intercom team will notice and gain better support for react-native (and similar mobile frameworks)
react-native-firebase is SUCH a powerful library to use across both Android and iOS. In Android, we had to implement our own FCM handler, and then surface notifications to Intercom & RNFirebase selectively. This was SUPER easy, and Intercom excels here by surfacing
isIntercomPush(message) to know who should handle the message. iOS was similar, BUT they don’t allow for FCM in iOS. I know, even firebase is just a passthrough for APN, but it would be a nice option. Similarly in iOS, the ability to check
isIntercomPushNotification(userInfo) here is super helpful.
[Android] Dex References:
Won’t go into much detail here, check out my other post here:
This still feels like something Intercom should try and address in Android.
Some general things to be aware of:
Thanks for reading! Happy to use this thread to provide more detail, answer questions people have about Intercom & React Native.