braze-inc / braze-web-sdk

Public repo for the Braze Web SDK
https://www.braze.com
Other
73 stars 25 forks source link

Question: Updating `getUnviewedCardCount` (v2.4.1) #76

Closed asherstoppard closed 4 years ago

asherstoppard commented 4 years ago

Good Afternoon,

The following might end up being similar #75 but I thought I'd open a separate issue to track just in case it required a different solution.

We're manually implementing Content Cards and we need to get the unread Content Card count. Which method do we need to fire to maintain the correct count in getUnviewedCardCount? Should we be using logContentCardsDisplayed?

Thank you for your help.

wesleyorbin commented 4 years ago

Hi @asherstoppard!

The correct method would be appboy.logCardImpressions, as this method individually marks the cards passed to the method as viewed.

Please let me know if this solves your issue.

asherstoppard commented 4 years ago

@wesleyorbin Thank you that's great! I'm getting the same issues outlined in #75 for logCardImpressions but I'll close this as complete as I'm assuming the solution for #75 will be the same.