Skip to main content

Hi,

I’m following this guide to setup push notification and would like to find out more details on what does the Intercom.handlePushMessage() do in the react-native. 

https://developers.intercom.com/installing-intercom/react-native/push-notifications/

 

useEffect(() => {
/**
* Handle PushNotification
*/
AppState.addEventListener(
'change',
(nextAppState) =>
nextAppState === 'active' && Intercom.handlePushMessage()
);
return () => AppState.removeEventListener('change', () => true);
}
, >])

 

 

When tapping the push notification on iOS it opens the message but not on Android. What did I miss?

 

Thanks.

Hi @Khee Wong 👋 Eden from the support engineer team here.

 

It looks like you are already speaking with our support team in a conversation! You can continue troubleshooting with them there in regards to opening push notifications on Android. For your initial question, I will reiterate the answer here: 

 

That Intercom.handlePushMessage() method handles the opening of an Intercom push message - it retrieves the URI from the last Intercom push message (see details here). 👍


Reply