braze-react-native-sdk icon indicating copy to clipboard operation
braze-react-native-sdk copied to clipboard

[Bug]: requestContentCardsRefresh doesn't work as expected

Open WojciechRupik opened this issue 1 year ago • 2 comments
trafficstars

Which Platforms?

iOS, Android

Which React Native Version?

0.71.19

Which @braze/react-native-sdk SDK version?

12.1.0

Repro Rate

100%

Steps To Reproduce

Example:

  1. import Braze from "@braze/react-native-sdk".
  2. Braze.changeUser("id")
componentDidMount() {
    Braze.addListener(Braze.Events.CONTENT_CARDS_UPDATED, async (update) => {
      console.log('update', update)
      this.setState({ cards: update.cards })
    })

    Braze.requestContentCardsRefresh()
}

Expected Behavior

User should be able to see newest card after requestContentCardsRefresh trigger

Actual Incorrect Behavior

To able to see newest card i need to click on push notification

Verbose Logs

Additional Information

ios code

android code

WojciechRupik avatar Sep 01 '24 18:09 WojciechRupik

Not working, any workaround ?

rajneeshraghav avatar Sep 09 '24 13:09 rajneeshraghav

Hey @WojciechRupik, it looks like the code snippet you shared uses a different method from the one you linked. Please write in to [email protected] with the following details:

  1. Sample code of how you are integrating Braze (specifically around Content Cards and which Content Cards methods you are calling) and where you are calling that.
  2. You mentioned you have to click on the push notification. Is this a test send?
  3. What steps you took in your app to reproduce this
  4. Verbose logs from the Braze SDK as you reproduced this
  5. Which platforms you are observing it on

and reference this GitHub issue in your email. Thank you!

jerielng avatar Sep 12 '24 19:09 jerielng

Closing out this issue due to inactivity.

If you would need further assistance, feel free to reach out to our support team at [email protected] with the supporting information listed above.

Thank you!

vanessaland avatar Dec 05 '24 21:12 vanessaland