Closed StuartPyper closed 10 months ago
Hi @StuartPyper thank you for your reporting.
to set up an extra check
?To get them to show I had to add a useQuery:
const checkEponiaIsConfigured = async () => await Exponea.isConfigured();
const { data: isExponeaConfigured, refetch: refetchIsExponeaConfigured } = useQuery(
'isExponeaConfigured',
checkEponiaIsConfigured,
{
cacheTime: EXPONIAISCONFIGURED_CACHE_AND_STALE_TIME,
staleTime: EXPONIAISCONFIGURED_CACHE_AND_STALE_TIME,
}
);
and then on the page display the placeholder when the result was true:
if (isExponeaConfigured) {
return (
<Stack css={{ flex: 1 }} justify="center">
<InAppContentBlocksPlaceholder
style={{
width: '100%'
}}
placeholderId={placeholderId}
/>
</Stack>
);
}
it's almost as if the module needs a nudge in order to display.
inAppContentBlockPlaceholdersAutoLoad: ['in-app-content-test2']
inside Exponea.configure seems to make it worse rather than better. Thank you for your response @StuartPyper
"This occurs on Android or iOS platform?" Yes, I see the same issues on both.
Hi @StuartPyper thank you for all your reportings. Could you please escalate this with our support team please? We would like to see logs, messages, contents. We tested our Example app (you may see in github) and our tests passed. There may be few details that may concern:
isExponeaConfigured
identifyCustomer
could receive but cannot see due to given consent, or another 'personalisation' reasonThank you for your patience, we would like to investigate problem more deeply and see your setup & usecase. Please call support with more infos. Thank you
I'm closing this thread due to small amount of info :-/ Unable to reproduce on our side.
Hi, Please help, I have been trying to set up in-app content blocks with our app using the latest release (1.6.0) but have run into a few issues:
await Exponea.isConfigured()
is returned true. If I do that then it will sometimes show the content but the display is inconsistent.inAppContentBlockPlaceholdersAutoLoad
seems to make the inconsistent display of the banners worse rather than better.I'm not sure what is going wrong as we have been successfully using older versions of the SDK in our app for push notifications for over a year now. From reading the doc, it seems that we shouldn't need to add any extra checks in order to display in-app content?
Note: