Open kukadiyaAni opened 8 months ago
Hi @kukadiyaAni
Can you answer following to investigate it:
ClearTap
which you have mentioned? Can you mention their documentation?autoIntegrate
or manually integrate SDK?@nishant-clevertap Thanks for your time
Which SDK is ClearTap which you have mentioned? Can you mention their documentation? => "clevertap-react-native": "^1.2.1" => https://developer.clevertap.com/docs/react-native => https://developer.clevertap.com/docs/react-native-push-notification
How have you integrated CleverTap SDK? Do you have used autoIntegrate or manually integrated SDK? => We just yarn clevertap-react-native and added the method as per documentation and documentation mentioned in above
Are you able to get a notification callback in all states(foreground, background, killed) when a push is sent from CleverTap in iOS? => Yes, I got and I also got a notification tap event as well but after Integrated ClearTap all firebase notification callback and event stop woking as I mention in question onNotificationOpenedApp and getInitialNotification
@kukadiyaAni Can you try integrating CleverTap SDK manually as mentioned here in doc: https://developer.clevertap.com/docs/push-notifications-ios#manually-integrating-push-notification-support
@nishant-clevertap you shared documentation for iOS, we have an issue in iOS but we are using react-native, we need an event in react-native side
@kukadiyaAni You will also have AppDelegate file in React native in iOS, You have to add methods in that file only as mentioned in doc.
I'm using clevertap-react-native:1.2.1 and after setting up ClearTap, stop getting the default firebase
onNotificationOpenedApp
event when tapping on notification andgetInitialNotification
returns null when clicking on notification and the app is closedit was working fine before setup ClearTap
Note: When sending notifications from FCM not from ClearTap and it's happen only iOS, Android works fine
For handling ClearTap push notifications click the event below code
CleverTap.addListener(CleverTap.CleverTapPushNotificationClicked, (e)=>{/*consume the event*/})
This event trigger when app force close and tap on notification but if app is active in background then above method is not trigger.