CleverTap / clevertap-react-native

CleverTap React Native SDK
Other
59 stars 71 forks source link

Event when button has openURL #237

Open FSAish opened 2 years ago

FSAish commented 2 years ago

Wanted to check if there is any event that gets fired when we tap on button inApp notification and provide open URL.

CleverTap.addListener( CleverTap.CleverTapInAppNotificationButtonTapped, (event: any) => { console.log('CleverTapInAppNotificationButtonTapped Event called - ', event); ....

This log never gets called I get event only when I add custom key value pair.

piyush-kukadiya commented 2 years ago

@FSAish Yes we don't give callback if custom k,v pair is not present. We will discuss this internally if we can support this. Thanks!

Mobu34 commented 2 years ago

Hello @piyush-kukadiya

I'm also trying to use this event to get the url when users press any button of our InApp messages but this event never gets called as well and I can't add custom key value pair for InApp campaigns (only for push notifications). Is it normal ?

Do you plan to support this without custom key value pair ?

Thanks

darshanclevertap commented 2 years ago

@Mobu34 You can add KV pairs to the button of the InApp campaigns if you are using the Native InApp templates.

piyush-kukadiya commented 2 years ago

@Mobu34 Make sure you are following proper steps given in below docs:

You will find it while creating in app campaigns

Screenshot 2022-09-07 at 1 03 17 PM Screenshot 2022-09-07 at 1 03 09 PM
Mobu34 commented 2 years ago

Thanks for replying and for your help @darshanclevertap @piyush-kukadiya

Actually I could not find this action as I wanted to use the alert template but this action is not available for that one :

Capture d’écran 2022-09-07 à 11 10 21

And how suggests FSAish, is it possible to get fired CleverTap.CleverTapInAppNotificationButtonTapped without KV pairs ?

Thank you

piyush-kukadiya commented 2 years ago

@Mobu34 Without custom kv we don't give callback as of now. Also custom k,v is not applicable for alert in app. Although we can discuss this with our product team if we can have support for custom k,v for alert.