Untitled
unknown
plain_text
a year ago
614 B
14
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