Subscription Lists for the React Native Module
Manage channel and contact subscription lists for topic-based messaging.
For information about Subscription Lists, including overview, use cases, and how to create subscription lists, see Subscription Lists.
Channel Subscription Lists
Channel subscriptions apply only to the single channel.
// Modifying channel subscription lists
Airship.channel.editSubscriptionLists()
.subscribe("food")
.unsubscribe("sports")
.apply()
// Fetching channel subscription lists
const channelSubscriptions = await Airship.channel.getSubscriptionLists();Contact Subscription Lists
Contact subscriptions are set at the user-level and require a Channel scope specifying the types that the subscription list applies to.
// Modifying contact subscription lists
Airship.contact.editSubscriptionLists()
.subscribe("food", SubscriptionScope.App)
.unsubscribe("sports", SubscriptionScope.Sms)
.apply()
// Fetching contact subscription lists
const contactSubscriptions = await Airship.contact.getSubscriptionLists();Verifying Subscription Lists
To verify that subscription lists have been set correctly, look up the channel or contact in the Contact Management view. You can search by Channel ID or Named User ID to view the subscription lists associated with a channel or contact.
Feedback
Was this page helpful?
Thank you
Thanks for your feedback!
Tell Us MoreThank you
We will try harder!
Tell Us MoreCategories