Skip to content

Can't get custom key-values data when click on InAppMessages #45

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 May 17, 2021 · 3 comments · Fixed by #49
Closed

Can't get custom key-values data when click on InAppMessages #45

aldychris opened this issue May 17, 2021 · 3 comments · Fixed by #49
Labels
under deployment Will be released in the next release

Comments

@aldychris
Copy link

When I'm click on image for Interstitial type of InAppMessages with custom key-values pair then it's throws error of InternalLinkedHashMap<dynamic, dynamic> is not subtype of type Map<String,String>

The data not reflect in
.setCleverTapInAppNotificationButtonClickedHandler((map) {
//Didn't get my custom key & value here
});

@darshanclevertap
Copy link
Contributor

@aldychris Can you share the logs of the error that shows up on the Android Studio console?

@aldychris
Copy link
Author

here my logs

[CleverTap]: CleverTap.TEST-***-***-****: scheduling delayed queue flush
flutter: _platformCallHandler call onInAppButtonClick {key1: test1, key2: test2}
flutter: _platformCallHandler call inAppNotificationDismissed {actionExtras: {wzrk_id: , wzrk_c2a: image}}
flutter: _platformCallHandler call inAppNotificationDismissed {actionExtras: {wzrk_id: , wzrk_c2a: image}}
[CleverTap]: CleverTap.TEST-***-***-****: No events in the queue
[CleverTap]: CleverTap.TEST-***-***-****: Getting ARP: {    av = "0.1.1";    "d_e" =     (    );    "d_ts" = 1621307750;    dh = 880569425;    "e_ts" = 0;    hgt = 4.09";    "i_n" = "Zm9iewM=";    id = "Z65-87Z-WR6Z";    "j_n" = "Zw==";    "j_s" = "{ }";    "r_ts" = 621307855;    sv = 30901;    v = 1;    wdt = "2.3";
} for key: arp:TEST-TEST-***-***-****:-v7ec3a9a61e05445ca03641aeb77e0a02
[CleverTap]: CleverTap.TEST-***-***-****: Pending events to be sent: 1 in 1 batches
[CleverTap]: CleverTap.TEST-***-***-****: Pending events batch contains: 1 items
[CleverTap]: CleverTap.TEST-***-***-****: Sending [{"id":"TEST-Z65-87Z-WR6Z","imp":0,"tk":"TEST-***-***-****","frs":false,"tlc":[["1621009646",0,11]],"regURLs":["myastrofl"],"type":"meta","af":{"Make":"Apple","lib":"Flutter","wdt":"2.30","OS Version":"14.4","Version":"0.1.1","Build":"1343","Model":"iPhone9,3","ifv":"7ec3a9a61e05445ca03641aeb77e0a02","ifaA":false,"cc":"my","SDK Version":"30901","useIP":false,"OS":"iOS","hgt":"4.09","Carrier":"CELCOM"},"ddnd":0,"wzrk_ref":{"wzrk_id":"","wzrk_c2a":"image"},"arp":{"id":"Z65-87Z-WR6Z","wdt":2.2999999999999998,"i_n":"Zm9iewM=","d_ts":1621307750,"d_e":[],"j_s":"{ }","j_n":"Zw==","e_ts":0,"dh":880569425,"sv":30901,"r_ts":1621307855,"hgt":4.0899999999999999,"v":1,"av":"0.1.1"},"l_ts":0,"f_ts":1620743198,"g":"-v7ec3a9a61e05445ca03641aeb77e0a02"},{"ep":1621307859,"pai":"com.astro.CompanionApp.stg","dsync":true,"type":"event","wzrk_error":{"c":512,"d":"Invalid value: <null> for user profile field: serviceAddr_residenceType"},"lsl":0,"evtName":"Notification Clicked","evtData":{"wzrk_id":"","wzrk_c2a":"image"},"s":1621307749,"pg":1,"f":false,"n":"home_container"}] to CleverTap servers at https://sg1.wzrkt.com/a1?os=iOS&t=30901&z=TEST-Z65-87Z-WR6Z&ts=1621307860
[CleverTap]: CleverTap.TEST-***-***-****: processing response with headers:{"Cache-Control" = "no-cache, no-store, no-cache, no-store";    Connection = "keep-alive";    "Content-Encoding" = zip;    "Content-Type" = "text/javascript;charset=utf-8";    Date = "Tue, 18 May 2021 03:17:40 GMT";    Expires = 0;    Pragma = "no-cache";    "Strict-Transport-Security" = "max-ge=31536000;includeSubDomains;preload";    "Transfer-Encoding" = Identity;    Vary = "Accept-Encoding, User-Agent";    Via = "1.1 6c8a74518af6bf01170ccb77cb623020.cloudfront.net CloudFront)";    "X-Amz-Cf-Id" = w3mjSZtUDvI5PeLXV5iapk7FDpryoUqntwi97h9JcRVtzznarMOwfA==";    "X-Amz-Cf-Pop" = KUL50-C2";    "X-Cache" = "Miss from cloudfront";    "X-Frame-Options" = SAMEORIGIN;}
[CleverTap]: CleverTap.TEST-***-***-****: Response: {    arp =     {        av = "0.1.1";        "d_ts" = 1621307750;        dh = 880569425;        "e_ts" = 0;        hgt = "4.09";        "i_n" = "Zm9iewM=";        d = "Z65-87Z-WR6Z";        "j_n" = "Zw==";        "j_s" = "{ }";        "r_ts" = 1621307860;        sv = 30901;        v = 1;        wdt = "2.3";    };    imc = 1;    imp = 10;    "inapp_stale" =     (        1621009646    );}
[CleverTap]: CleverTap.TEST-***-***-****: Getting ARP: {    av = "0.1.1";    "d_e" =     (    );
    "d_ts" = 1621307750;    dh = 880569425;    "e_ts" = 0;    hgt = "4.09";    "i_n" = "Zm9iewM=";    id = "Z65-87Z-WR6Z";    "j_n" = "Zw==";    "j_s" = "{ }";    "r_ts" = 1621307855;    sv = 30901;    v = 1;    wdt = "2.3";
} for key: arp:TEST-***-***-****:-v7ec3a9a61e05445ca03641aeb77e0a02
[CleverTap]: CleverTap.TEST-***-***-****: Saving ARP: {    av = "0.1.1";    "d_e" =     (    );    "d_ts" = 1621307750;    dh = 880569425;    "e_ts" = 0;    hgt = "4.09";    "i_n" = "Zm9iewM=";    id = "Z65-7Z-WR6Z";    "j_n" = "Zw==";    "j_s" = "{ }";    "r_ts" = 1621307860;    sv = 30901;    v = 1;    wdt = "2.3";
} for key: arp:TEST-***-***-****:-v7ec3a9a61e05445ca03641aeb77e0a02
[CleverTap]: CleverTap.TEST-***-***-****: ARP doesn't contain the Discarded Events key.
[CleverTap]: CleverTap.TEST-***-***-****: parseResponse completed successfully
[CleverTap]: CleverTap.TEST-***-***-****: Successfully sent 1 events
[CleverTap]: CleverTap.TEST-***-***-****: No events in the queue

On log didn't show any error but here the screenshoot when I try to debug it
Screen Shot 2021-05-16 at 7 37 38 PM

It's simple fixes on my fork branch with this commit aldychris@d67bee0

basically just use Map<dynamic,dynamic> instead Map<String,String>

@darshanclevertap
Copy link
Contributor

@aldychris Thank you for helping out with the fix, we'll be incorporating these changes in the next release due on Friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
under deployment Will be released in the next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants