Couldn't find android notification click handler in documentation


#1

I have integrated clever tap into my android app. It works fine, but how can I add notification click methods in my app code, I am not able to find the code for notifications clicks on your website. Can anyone guide me or share a reference doc?


#2

@jack2jm You can find the documentation here - https://developer.clevertap.com/docs/android#section-custom-android-push-notifications-handling

To track the push notification clicks/events and deeplinks add the following receiver in your AndroidManifest.xml.

<receiver
    android:name="com.clevertap.android.sdk.CTPushNotificationReceiver"
    android:exported="false"
    android:enabled="true">
</receiver>

#3

It has already implemented. Also, i am getting proper data. But when i click on the notification, want to open a particular activity, where I can write code for received notification data?


#4

We pass all the parameters to the Intent which launches the app or a particular activity. You can use the onNewIntent() method and get the Bundle and use it


#5

Thanx a lot. Its works. :slight_smile: