Untitled
Anonymous
plain_text
09/26/2024 7:40 AM
820 B
22
Indexable
useEffect(() => {
const handleDeeplinkWithPayload = (smartechData) => {
console.log('Smartech Data :: ', smartechData);
console.log('Smartech Deeplink :: ', smartechData.smtDeeplink);
console.log('Smartech CustomPayload:: ', smartechData.smtCustomPayload);
};
// Deeplink callback for Push Notification, InappMessage and AppInbox
SmartechReact.addListener(SmartechReact.SmartechDeeplink, handleDeeplinkWithPayload);
// Remove listener on cleanup
return function cleanup() {
SmartechReact.removeListener(SmartechReact.SmartechDeeplink);
};
}, []);Editor is loading...
Leave a Comment