braze-react-native-sdk
braze-react-native-sdk copied to clipboard
[Bug]: requestContentCardsRefresh doesn't work as expected
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:
import Braze from "@braze/react-native-sdk".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
Not working, any workaround ?
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:
- 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.
- You mentioned you have to click on the push notification. Is this a test send?
- What steps you took in your app to reproduce this
- Verbose logs from the Braze SDK as you reproduced this
- Which platforms you are observing it on
and reference this GitHub issue in your email. Thank you!
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!