Skip to content

Commit 03d3d64

Browse files
Javier Cuevasbrowniefed
authored andcommitted
Update README.md (#225)
The `sendTokenToIntercom` method sends the Firebase Cloud Messaging (FCM) token to intercom for push notifications. However despite FCM can be used for both Android and iOS, Intercom only supports FCM tokens for Android and not for iOS, and that's why `sendTokenToIntercom` is [stubbed for iOS on this library](https://github.com/tinycreative/react-native-intercom/blob/374faecd21ffc46d2582ea4d6e97b2ae3f8f0211/iOS/IntercomWrapper.m#L44). This generated a lot of confusion for us since we were expecting FCM to work cross-platform. Also maybe `sendTokenToIntercom` should be renamed to `sendFCMTokenToIntercom`.
1 parent c33c316 commit 03d3d64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ _onUnreadChange = ({ count }) => {
278278
Intercom.Notifications.WINDOW_DID_HIDE
279279
```
280280
281-
### Send FCM token directly to Intercom
281+
### Send FCM token directly to Intercom for push notifications (Android only)
282282
```
283283
Firebase.messaging().getToken()
284284
.then((token) => {

0 commit comments

Comments
 (0)