Defining a News Feed category
News Feed is being deprecated. Braze recommends that customers who use our News Feed tool move over to our Content Cards messaging channel—it’s more flexible, customizable, and reliable. Check out the migration guide for more.
Instances of the Braze News Feed can be configured to only receive cards from a certain category. This allows for the effective integration of multiple News Feed streams within a single application. For more information on this feature, visit our News Feed best practices.
News Feed categories can be defined by calling one of the following methods as you load the News Feed:
1 2 3 4 5 6 [newsFeed setCategories:ABKCardCategoryAll]; [newsFeed setCategories:ABKCardCategoryAnnouncements]; [newsFeed setCategories:ABKCardCategoryAdvertising]; [newsFeed setCategories:ABKCardCategorySocial]; [newsFeed setCategories:ABKCardCategoryNews]; [newsFeed setCategories:ABKCardCategoryNoCategory];
1 2 3 4 5 6 newsFeed.categories = ABKCardCategory.all newsFeed.categories = ABKCardCategory.announcements newsFeed.categories = ABKCardCategory.advertising newsFeed.categories = ABKCardCategory.social newsFeed.categories = ABKCardCategory.news newsFeed.categories = ABKCardCategory.noCategory
You can also populate a feed with a combination of categories as in the following example:
1 [newsFeed setCategories:ABKCardCategoryAnnouncements|ABKCardCategoryAdvertising];
1 newsFeed.categories = ABKCardCategory([.announcements, .advertising])