Untitled
unknown
plain_text
18 days ago
614 B
4
Indexable
Never
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); }; }, []);
Leave a Comment