Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.71 KB

File metadata and controls

41 lines (30 loc) · 1.71 KB
nav_title article_title page_order platform description channel
Defining a News Feed Category
Defining a News Feed Category for Android and FireOS
3
Android
FireOS
This reference article shows how to define a News Feed category in your Android or FireOS application.
news feed

Defining a News Feed category

This reference article shows how to define a News Feed category in your Android or FireOS application.

{% alert note %} 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. {% endalert %}

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, see our News Feed best practices

News Feed categories can be defined by calling the following methods as you load the News Feed:

newsFeed.setCategories(CardCategory.ALL_CATEGORIES);
newsFeed.setCategories(CardCategory.ADVERTISING);
newsFeed.setCategories(CardCategory.ANNOUNCEMENTS);
newsFeed.setCategories(CardCategory.NEWS);
newsFeed.setCategories(CardCategory.SOCIAL);
newsFeed.setCategories(CardCategory.NO_CATEGORY);

You can also populate a feed with a combination of categories as in the following example:

newsFeed.setCategories:EnumSet.of(CardCategory.ANNOUNCEMENTS, CardCategory.NEWS);