Untitled

 avatar
unknown
plain_text
9 months ago
614 B
9
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