AppboyKit (also known as the Objective-C SDK) is no longer supported and has been replaced by the Swift SDK. It will no longer receive new features, bug fixes, security updates, or technical support—however, messaging and analytics will continue to function as normal. To learn more, see Introducing the New Braze Swift SDK.
Defining a News Feed category
News Feed is being deprecated. We recommend migrating to our Content Cards messaging channel instead—it’s more flexible, customizable, and reliable. To get started, check out Migrating from News Feed.
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])