Skip to content
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

[Bug]: requestContentCardsRefresh doesn't work as expected #267

Open
WojciechRupik opened this issue Sep 1, 2024 · 2 comments
Open

[Bug]: requestContentCardsRefresh doesn't work as expected #267

WojciechRupik opened this issue Sep 1, 2024 · 2 comments
Labels

Comments

@WojciechRupik
Copy link

WojciechRupik commented Sep 1, 2024

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 WojciechRupik changed the title [Bug]: getContentCards doesn't work on iOS [Bug]: requestContentCardsRefresh doesn't work as expected Sep 4, 2024
@rajneeshraghav
Copy link

Not working, any workaround ?

@jerielng
Copy link
Collaborator

Hey @WojciechRupik, it looks like the code snippet you shared uses a different method from the one you linked. Please write in to support@braze.com 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!

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

No branches or pull requests

3 participants