channelDescription
Provides a description for a notification channel.
Channel descriptions appear below the channel name in notification settings, helping users understand what types of notifications they'll receive. Descriptions should be brief but informative, explaining the purpose of the channel.
Note: Channel descriptions cannot be changed after the channel is created. This method is only called on Android 8.0 (API 26) and higher. Example - Provide helpful descriptions:
public String channelDescription(String channelName) {
switch (channelName) {
case "orders":
return "Order confirmations, shipping updates, and delivery notifications";
case "promotions":
return "Special offers, discounts, and promotional campaigns";
case "urgent":
return "Time-sensitive alerts requiring immediate attention";
default:
return "General app notifications and updates";
}
}
Content copied to clipboard
Return
Description text to show in notification settings, or null/empty for no description
Parameters
channelName
Channel identifier from the push payload's "pw_channel" attribute,or the default channel name if not specified