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

Feat/braze event listener #240

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

cnguyen812
Copy link
Contributor

Add event listener for Braze content card updates. Instead of just fetching content cards directly, we request a refresh and on refresh event, then we fetch content cards.

  • on init, subscribe a listener and persist the subscription to listen for updates, and fetch cards on update event
  • on init, since it takes a bit of time for content cards to update, we poll a few times at 5 second intervals for initial content cards
  • request refresh on HomeRoot focus, throttled to every 10 seconds
  • update Braze language on language change

cmgustavo
cmgustavo previously approved these changes Jul 18, 2022
Copy link
Member

@cmgustavo cmgustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JohnathanWhite JohnathanWhite merged commit dbc3b6d into bitpay:master Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants