clevertap-cordova icon indicating copy to clipboard operation
clevertap-cordova copied to clipboard

CleverTap not invoking notification

Open rahul-chefkart opened this issue 2 years ago • 4 comments

Hi Folks,

I have implemented the CleverTap service in my ionic capacitor project.

List of dependencies and version of packages are as follows:

"@ionic-native/clevertap": "^5.36.0", "@capacitor/local-notifications": "^1.0.8",

Techs Used: Ionic 5 Capacitor 3 Reactjs

Also added the metadata to the Android manifest file.

Issue - When invoking a push notification from the CleverTap dashboard and handling it using the "@capacitor/local-notifications" it is visible on the notification tray but whenever I call the CleverTap.createNotification(data) the notification is not getting reflected on the tray.

All the configuration and implementation are the equals documentation.

rahul-chefkart avatar May 17 '22 10:05 rahul-chefkart

@rahul-chefkart Can you provide clevertap logs using setDebugLevel for debugging.

piyush-kukadiya avatar May 17 '22 10:05 piyush-kukadiya

@piyush-kukadiya From where I can find the clever tap logs Can you please suggest? I have set the debugging using setDebugLevel in my app.

rahul-chefkart avatar May 17 '22 15:05 rahul-chefkart

@rahul-chefkart From Android studio logcat

piyush-kukadiya avatar May 19 '22 13:05 piyush-kukadiya

@piyush-kukadiya Please check the logs given below -

V/Capacitor/PushNotificationsPlugin: Notifying listeners for event pushNotificationReceived

To native (Cordova plugin): callbackId: INVALID, service: CleverTapPlugin, action: createNotification, actionArgs: [{"id":"0:1653455898990116%bcd1f0abf9fd7ecd","data":{"wzrk_acct_id":"TEST-XXXXXX","nm":"test","nt":"Test","wzrk_pivot":"wzrk_default","wzrk_cid":"test","wzrk_rnv":"false","wzrk_ttl":"1653542295","wzrk_push_amp":"false","wzrk_bc":"","wzrk_bi":"2","wzrk_ck":"1455895960","wzrk_dt":"FIREBASE","wzrk_id":"0_0","wzrk_pn":"true"}}]

Also, there is no clevertap listener that I have added in the service file.

rahul-chefkart avatar May 25 '22 05:05 rahul-chefkart