Skip to content

Can't received Inbox data #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aldychris opened this issue Jan 3, 2022 · 1 comment
Closed

Can't received Inbox data #87

aldychris opened this issue Jan 3, 2022 · 1 comment

Comments

@aldychris
Copy link

aldychris commented Jan 3, 2022

I'm having issues when trying to set a campaign for Inbox type when I try to test during campaign creation using my testing account everything working fine, I can receive the notification and the inbox saved to CleverTap DAO, but when I try to schedule notification and send the campaign I'm never received the Inbox.

Same thing with saving to the inbox when I try to send the Push Notification when I enable the "Include this message in App Inbox" I can receive the push notification but the message is not saved to the user inbox.

Here's the log when I sent testing notification during Inbox creation

D/CleverTap:PushProvider(31849):  [PushType:FCM] Found Valid Notification Message 
V/CleverTap:[:PushProvider:TEST-000-000-0000](31849):  [PushType:FCM] received notification from CleverTap: Bundle[{wzrk_acct_id=000-000-0000, nm=Touch this notification to open your app and view your notification inbox message, nt=CleverTap, wzrk_inbox={ "msg" : { "type" : "simple" , "bg" : "#ffffff" , "orientation" : "l" , "content" : [ { "key" : 7544419862 , "message" : { "text" : "Test Inbox Message" , "color" : "#000000" , "replacements" : "Test Inbox Message" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "title" : { "text" : "Test Inbox Title" , "color" : "#000000" , "replacements" : "Test Inbox Title" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "action" : { "hasUrl" : false , "hasLinks" : false , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "links" : [ { "type" : "copy" , "text" : "Link" , "color" : "#007bff" , "bg" : "#ffffff" , "copyText" : { "text" : "" , "replacements" : ""} , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "kv" : { }}]} , "media" : { } , "icon" : { }}] , "enableTags" : false , "tags" : [ ]} , "tags" : [ ] , "enableTags" : false}, wzrk_pivot=wzrk_default, wzrk_cid=general, wzrk_rnv=false, wzrk_ttl=1641259990, wzrk_push_amp=false, wzrk_ck=1620178561_1641173590, wzrk_dt=FIREBASE, wzrk_id=0_0, wzrk_pn=true}]

V/CleverTap(31849): PostAsyncSafely Task: CleverTapAPI#_createNotification starting on...pool-25-thread-1
D/CleverTap:TEST-000-000-0000: Handling notification: Bundle[{wzrk_acct_id=000-000-0000, nm=Touch this notification to open your app and view your notification inbox message, nt=CleverTap, wzrk_inbox={ "msg" : { "type" : "simple" , "bg" : "#ffffff" , "orientation" : "l" , "content" : [ { "key" : 7544419862 , "message" : { "text" : "Test Inbox Message" , "color" : "#000000" , "replacements" : "Test Inbox Message" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "title" : { "text" : "Test Inbox Title" , "color" : "#000000" , "replacements" : "Test Inbox Title" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "action" : { "hasUrl" : false , "hasLinks" : false , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "links" : [ { "type" : "copy" , "text" : "Link" , "color" : "#007bff" , "bg" : "#ffffff" , "copyText" : { "text" : "" , "replacements" : ""} , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "kv" : { }}]} , "media" : { } , "icon" : { }}] , "enableTags" : false , "tags" : [ ]} , "tags" : [ ] , "enableTags" : false}, wzrk_pivot=wzrk_default, wzrk_cid=general, wzrk_rnv=false, wzrk_ttl=1641259990, wzrk_push_amp=false, wzrk_ck=1620178561_1641173590, wzrk_dt=FIREBASE, wzrk_id=0_0, wzrk_pn=true}]

V/CleverTap:TEST-000-000-0000: Converting collapse_key: 1620178561_1641173590 to notificationId int: 1079720575
D/CleverTap:TEST-000-000-0000: Creating the notification id: 1079720575 from collapse_key: 1620178561_1641173590
V/CleverTap(31849): CTMessage Dao - {"id":"1641117494","msg":{"type":"simple","bg":"#ffffff","orientation":"l","content":[{"key":3412044850,"message":{"text":"Message","color":"#000000","replacements":""},"title":{"text":"Title","color":"#000000","replacements":""},"action":{"hasUrl":false,"hasLinks":false,"url":{"android":{"text":"","replacements":""},"ios":{"text":"","replacements":""}},"links":[{"type":"copy","text":"Link","color":"#007bff","bg":"#ffffff","copyText":{"text":"","replacements":""},"url":{"android":{"text":"","replacements":""},"ios":{"text":"","replacements":""}},"kv":{}}]},"media":{},"icon":{}}],"enableTags":false,"tags":[]},"isRead":true,"date":1641117494,"wzrk_ttl":1641203894,"tags":[""],"wzrk_id":"0_0","wzrkParams":{"wzrk_id":"0_0"}}
[ +308 ms] V/CleverTap(31849): Service com.clevertap.android.sdk.pushnotification.CTNotificationIntentService found
[  +20 ms] D/CleverTap:TEST-000-000-0000: Rendered notification: Notification(channel=general pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)

V/CleverTap(31849): Storing Push Notification...null - with ttl - 1641259990
D/CleverTap(31849): Recording of Notification Viewed is disabled in the CleverTap Dashboard for notification payload: Bundle[{wzrk_acct_id=000-000-0000, nm=Touch this notification to open your app and view your notification inbox message, nt=CleverTap, wzrk_inbox={ "msg" : { "type" : "simple" , "bg" : "#ffffff" , "orientation" : "l" , "content" : [ { "key" : 7544419862 , "message" : { "text" : "Test Inbox Message" , "color" : "#000000" , "replacements" : "Test Inbox Message" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "title" : { "text" : "Test Inbox Title" , "color" : "#000000" , "replacements" : "Test Inbox Title" , "df" : { } , "defaultValuesSet" : { "value" : true , "strict" : true}} , "action" : { "hasUrl" : false , "hasLinks" : false , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "links" : [ { "type" : "copy" , "text" : "Link" , "color" : "#007bff" , "bg" : "#ffffff" , "copyText" : { "text" : "" , "replacements" : ""} , "url" : { "android" : { "text" : "" , "replacements" : ""} , "ios" : { "text" : "" , "replacements" : ""}} , "kv" : { }}]} , "media" : { } , "icon" : { }}] , "enableTags" : false , "tags" : [ ]} , "tags" : [ ] , "enableTags" : false}, wzrk_pivot=wzrk_default, wzrk_cid=general, wzrk_rnv=false, wzrk_ttl=1641259990, wzrk_push_amp=false, wzrk_ck=1620178561_1641173590, wzrk_dt=FIREBASE, wzrk_id=0_0, wzrk_pn=true}]
V/CleverTap(31849): PostAsyncSafely Task: CleverTapAPI#_createNotification executed successfully on...pool-25-thread-1`

and here the log when I restarted the app and try to fetch the inbox data

[        ] V/CleverTap:TEST-000-000-0000: Inbox: Processing response
[        ] V/CleverTap:TEST-000-000-0000: Inbox: Response JSON object doesn't contain the inbox key
[        ] V/CleverTap:TEST-000-000-0000: Processing pushamp messages...
[        ] V/CleverTap(31849): Ping frequency received - 240
[        ] V/CleverTap(31849): Stored Ping Frequency - 240
[        ] V/CleverTap(31849): Received ACK -true
[        ] V/CleverTap(31849): Updating RTL values...
[        ] V/CleverTap:TEST-000-000-0000: Processing Display Unit items...
[        ] V/CleverTap:TEST-000-000-0000: DisplayUnit : JSON object doesn't contain the Display Units key
[        ] V/CleverTap:TEST-000-000-0000: Processing Feature Flags response...
[        ] V/CleverTap:TEST-000-000-0000: Feature Flag : JSON object doesn't contain the Feature Flags key
[        ] V/CleverTap:TEST-000-000-0000: Processing Product Config response...
[        ] V/CleverTap:TEST-000-000-0000: Product Config : JSON object doesn't contain the Product Config key
[        ] V/CleverTap:TEST-000-000-0000: Processing GeoFences response...
[        ] V/CleverTap:TEST-000-000-0000: Geofences : JSON object doesn't contain the Geofences key
[        ] I/CleverTapResponse(31849): Done processing response!
[        ] D/CleverTap:TEST-000-000-0000: Queue sent successfully
[        ] V/CleverTap:TEST-000-000-0000: Returning Queued events
[  +43 ms] V/CleverTap:TEST-000-000-0000: No events in the queue, failing
[        ] V/CleverTap(31849): PostAsyncSafely Task: CommsManager#flushQueueAsync executed successfully on...pool-25-thread-1
[   +1 ms] V/CleverTap(31849): PostAsyncSafely Task: CommsManager#flushQueueAsync starting on...pool-25-thread-1
[        ] V/CleverTap:TEST-000-000-0000: Pushing Notification Viewed event onto queue flush sync
[   +5 ms] V/CleverTap:TEST-000-000-0000: Pushing Notification Viewed event onto queue DB flush
[        ] V/CleverTap:TEST-000-000-0000: Somebody has invoked me to send the queue to CleverTap servers
[        ] V/CleverTap:TEST-000-000-0000: Returning Queued Notification Viewed events
[   +4 ms] V/CleverTap:TEST-000-000-0000: No events in the queue, failing
[        ] V/CleverTap(31849): PostAsyncSafely Task: CommsManager#flushQueueAsync executed successfully on...pool-25-thread-1

I'm using Clevertap 1.4.0 on Flutter and on Android Native side is using com.clevertap.android:clevertap-android-sdk:4.1.1

@darshanclevertap
Copy link
Contributor

@aldychris I'd suggest raising this issue with our support team via the CleverTap Dashboard. Just one thing, is your account ID truly - "TEST-000-000-0000" or you've masked it for representational purposes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants