Answered

Displaying of collections seems broken in react-native-intercom

  • 17 April 2023
  • 1 reply
  • 194 views

Hey,

 

After migrating from 

"@intercom/intercom-react-native": "^3.0.5",

to latest version 

"@intercom/intercom-react-native": "^4.0.1",

the displaying of specific helpcenter collections does not work anymore.

Old code: Does not work after updating the SDK

const res = await Intercom.displayHelpCenterCollections([‘1234567’])
// true

New code: Also does not work with the latest SDK

const collections = await Intercom.fetchHelpCenterCollections();
/**
[
{
"id": "1234567",
"title": "FAQ"
}
]
*/

const collectionIds = collections.map(_ => _.id);
// [ "1234567" ]

const collectionContent = IntercomContent.helpCenterCollectionsWithIds(collectionIds);
/**
{
"type": "HELP_CENTER_COLLECTIONS",
"ids": [
"1234567"
]
}
*/
const res = await Intercom.presentContent(collectionContent);
// true

The problem is the same for both methods:
displayHelpCenterCollections and presentContent return true, but no Intercom popup is opened.

icon

Best answer by Daniel M15 26 April 2023, 11:40

View original

1 reply

Userlevel 2

Hey @Thilo! Daniel from Customer Support Engineering here 🔧 

 

It seems like there may be an issue with this functionality in React. We may require some sensitive information from you to thoroughly investigate this, so we will escalate your case to our Messenger support team. In the meantime, can you try reverting to the older version of the SDK that was working for you? Thanks!

Reply