Answered

What does the Intercom.handlePushMessage() do ?

  • 12 September 2023
  • 1 reply
  • 157 views

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.

icon

Best answer by Eden 13 September 2023, 21:05

View original

1 reply

Userlevel 3
Badge

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