'Notification Clicked' count isn't reflecting

154 views
Skip to first unread message

abhi...@quintoapp.com

unread,
Mar 2, 2016, 3:36:32 AM3/2/16
to CleverTap Support

I'm able to successfully send and receive notifications on my Android device. Out of 6, i clicked on 3 notifications. However, CleverTap's dashboard doesn't reflect the count. It keeps showing Clicked as 0.

CleverTap Support

unread,
Mar 2, 2016, 3:43:39 AM3/2/16
to CleverTap Support
Abhilash,

Worth checking if you've missed the activity listener in your manifest. It is used to track clicks/opens etc. It updates as soon as click registers on the device given integration is correct.

Message has been deleted

abhi...@quintoapp.com

unread,
Mar 3, 2016, 5:58:11 AM3/3/16
to CleverTap Support
What exactly needs to be entered in the manifest. I've included whatever is mentioned in the docs.
Message has been deleted

Support

unread,
Mar 3, 2016, 12:32:39 PM3/3/16
to CleverTap Support
Hi Abhilash,

As mentioned, you'll need to add the following Lifecycle Callback to your manifest (here is the link to it). Please check for the following:

Set the Lifecycle Callback

IMPORTANT!

Add the “android:name” property to the tag:

<application
    android:label="@string/app_name"
    android:icon="@drawable/ic_launcher"
    android:name="com.clevertap.android.sdk.Application">

Note: If you’ve already got a custom Application class, call ActivityLifecycleCallback.register(this); before super.onCreate() in your custom Application class.

Note: The above step is extremely important and enables CleverTap to track notification opens, display in-app notifications, track deep links, and other important user behaviour.

Implementing this should fix your issue.

Thanks,

Support

abhila...@gmail.com

unread,
Mar 3, 2016, 12:34:00 PM3/3/16
to CleverTap Support
I'd done this already. Below is my application class.
public class App extends Application {

  




    
@Override


    
public void onCreate() {
        
ActivityLifecycleCallback.register(this);
        
super.onCreate();


 
}


}

Support

unread,
Mar 3, 2016, 12:48:50 PM3/3/16
to CleverTap Support
Hi Abhilash,

Thanks for letting us know. Apart from that, have you added these lines to your AndroidManifest.xml, as well, with the respective values for android:label and android:name?

<application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:name="com.clevertap.android.sdk.Application">

Thanks,
Support

abhila...@gmail.com

unread,
Mar 3, 2016, 12:51:01 PM3/3/16
to CleverTap Support
<application
       
android:name=".App"


       
android:allowBackup="true"
       
android:icon="@mipmap/ic_launcher"
       
android:label="@string/app_name"


       
android:supportsRtl="true"
       
android:theme="@style/MyMaterialTheme">

Yes, I have! :)

Support

unread,
Mar 3, 2016, 1:08:17 PM3/3/16
to CleverTap Support
Hi Abhilash,

Thanks for letting us know.

It should work now; did you try sending yourself the notification and clicking on it again?

Thanks,
Support

Support

unread,
Mar 3, 2016, 1:13:30 PM3/3/16
to CleverTap Support
Hi Abhilash,

If you still have issues, please run the integration validator for Android. If all is well, you should see the following result (If not, you should see your source of error).

[ OK ] Activity lifecycle registered
[ OK ] Required permission - READ_PHONE_STATE
[ OK ] Required permission - INTERNET
[ OK ] Optional, but recommended permission: ACCESS_NETWORK_STATE
[ OK ] Optional, but recommended permission: GET_ACCOUNTS
[ OK ] Optional, but recommended permission: ACCESS_COARSE_LOCATION
[ OK ] Optional, but recommended permission: WRITE_EXTERNAL_STORAGE
[ OK ] Account credentials
[ OK ] Install receiver (for tracking app installs)
[ OK ] GCM related permissions
[ OK ] GCM project number
[ OK ] Additional GCM related meta data
[ OK ] Built-in push support
[ OK ] In-app notification activity
[ OK ] Activities to exclude when displaying an in-app notification

CleverTap integration looks good! Cheers :)


Thanks,
Support

abhi...@quintoapp.com

unread,
Mar 3, 2016, 4:32:51 PM3/3/16
to CleverTap Support
In case of the first [FAIL], it shouldn't be a concern since I've made a custom Application class.
The click count is still not reflecting.
[FAIL] Activity lifecycle registered
Add android:name='com.clevertap.android.sdk.Application' to the application tag in your AndroidManifest.xml
[ OK ] Required permission - READ_PHONE_STATE
[ OK ] Required permission - INTERNET
[ OK ] Optional, but recommended permission: ACCESS_NETWORK_STATE
[ OK ] Optional, but recommended permission: GET_ACCOUNTS
[ OK ] Optional, but recommended permission: ACCESS_COARSE_LOCATION
[ OK ] Optional, but recommended permission: WRITE_EXTERNAL_STORAGE
[ OK ] Account credentials
[ OK ] Install receiver (for tracking app installs)
[WARN] GCM related permissions
Add the required GCM permissions to your AndroidManifest.xml
[ OK ] GCM project number
[ OK ] Additional GCM related meta data
[WARN] Built-in push support
Some push notfication support elements are missing: see warnings/errors above

Support

unread,
Mar 3, 2016, 5:57:28 PM3/3/16
to CleverTap Support
Hi Abhilash,

Thanks for sharing the validator output with us. 

You're right that it shouldn't be a concern, but try including that line in your AndroidManifest.xml to see if it helps fix your issue. In the meantime, we will take a look to see why you're facing this problem despite the ActivityLifecycleCallback.register(this); in your code.

Thanks,
Support

abhi...@quintoapp.com

unread,
Mar 3, 2016, 9:43:25 PM3/3/16
to CleverTap Support

No, it's not working. See, what i'm trying to say is that all of the steps that you mentioned in this post, I've done them since the beginning. But it just doesn't work.


abhi...@quintoapp.com

unread,
Mar 3, 2016, 9:47:54 PM3/3/16
to CleverTap Support
Ok, let me give it a try, by including the CleverTap application class. 

abhi...@quintoapp.com

unread,
Mar 3, 2016, 10:01:49 PM3/3/16
to CleverTap Support


abhi...@quintoapp.com

unread,
Mar 3, 2016, 10:23:47 PM3/3/16
to CleverTap Support
Even after including 
com.clevertap.android.sdk.Application
it didn't work. The 3 screenshots in my last reply will show you the stats. 

ni...@raincan.com

unread,
May 20, 2016, 3:31:33 AM5/20/16
to CleverTap Support
Whats the solution atlast ?? I have same Problem

Rishen Kapoor

unread,
May 20, 2016, 4:06:31 AM5/20/16
to CleverTap Support
Hi,

When clicks aren't recorded for your notifications it means that the activity lifecycle callback has been missed, you can confirm this by following the steps mentioned in this link - https://support.clevertap.com/integration/integration-testing/ Note: If you have a custom application class, you need to specify the path to that class while runnint the validator.

You can add your activity lifecycle callback by following the steps mentioned on this link - https://support.clevertap.com/integration/android-sdk/#set-the-lifecycle-callback

Let us know if this helps you out.

Cheers,
Support

ni...@raincan.com

unread,
May 20, 2016, 4:13:22 AM5/20/16
to CleverTap Support
Showing output of testing integration as follows:

[FAIL] Activity lifecycle registered
Add android:name='com.clevertap.android.sdk.Application' to the application tag in your AndroidManifest.xml
[ OK ] Required permission - READ_PHONE_STATE
[ OK ] Required permission - INTERNET
[ OK ] Optional, but recommended permission: ACCESS_NETWORK_STATE
[ OK ] Optional, but recommended permission: GET_ACCOUNTS
[ OK ] Optional, but recommended permission: ACCESS_COARSE_LOCATION
[ OK ] Optional, but recommended permission: WRITE_EXTERNAL_STORAGE
[ OK ] Account credentials
[ OK ] Install receiver (for tracking app installs)
[WARN] Built-in GCM handler
Add the com.clevertap.android.sdk.GcmBroadcastReceiver to your AndroidManifest.xml
[ OK ] In-app notification activity
[ OK ] Activities to exclude when displaying an in-app notification

CleverTap integration doesn't look so good :(




I have added manifiest file as:
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_app_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:largeHeap="true"



And In App


@Override
public void onCreate() {
ActivityLifecycleCallback.register(this);
super.onCreate();
}



How to  specify the path to that class while runnint the validator.??? what is that?

Still it get fails..
Reply all
Reply to author
Forward
0 new messages