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(n‘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);
// r "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.