The Braze SDKs include a default card feed to get you started with Content Cards. To show the card feed, you can use the
ReactAppboy.launchContentCards() method. The default card feed included with the Braze SDK will handle all analytics tracking, dismissals, and rendering for a user’s Content Cards.
You can use these additional methods to build a custom Content Cards Feed within your app:
||Requests the latest Content Cards from the Braze SDK server.|
||Retrieves Content Cards from the Braze SDK. This will return the latest list of cards from the server.|
||Logs a Content Content feed displayed event.|
||Logs a click for the given Content Card ID.|
||Logs an impression for the given Content Card ID.|
||Logs a dismissal for the given Content Card ID.|
Test Displaying Sample Content Card
Follow the steps below to test a sample content card.
- Set an active user in the React application by calling
- Head to Campaigns and follow this guide to create a new Content Card campaign.
- Compose your test Content Card campaign and head over to the Test tab. Add the same
user-idas the test user and click Send Test. You should be able to launch a Content Card on your device shortly.
A sample implementation of this can be found in AppboyProject, within the React SDK.