You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add error handling and refactor native modules to use Promises (#265)
* Remove IntercomIntentService and reference from README in favor of deprecating GCM notifications
* Remove GCM reference
* Adds error handling when calling Intercom.client(), without this the module will crash the Main app if Intercom hasn't been initialized
* sendTokenToIntercom error handling
* Add support for initializing Intercom from javascript
* Refactor Android module from using Callbacks to Promises
* Refactor iOS module from using Callbacks to use Promises
* Modify IntercomClient js to expect promises from native modules
* Add initializeIntercom to ts
* Remove initializeIntercom
* Add example for existing FCM setup to README
If you're already using FCM in your application you'll need to extend `FirebaseMessagingService` to handle Intercom's push notifications (refer to [Using Intercom with other FCM setups](https://developers.intercom.com/installing-intercom/docs/android-fcm-push-notifications#section-step-7-using-intercom-with-other-fcm-setups-optional))
140
+
141
+
### Here's an example if you're using [react-native-firebase](https://github.com/invertase/react-native-firebase) as your existing FCM setup:
142
+
143
+
I. Add a new file if you don't have one (`android/app/src/main/java/com/YOUR_APP/MainMessagingService.java`)
0 commit comments