Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a difference between channel ID and channel name in notifications

Tags:

android

I tried find what is difference between channel ID and channel name in notifications.

Why NotificationChannel requires two options, why not one option for example just channel id?

Please explain it to me.

like image 572
Taha Sami Avatar asked Sep 02 '25 09:09

Taha Sami


1 Answers

From DOCS

setChannelId()

  • Specifies the channel the notification should be delivered on.

Channel Name

  • The user visible name of the channel. You can rename this channel when the system locale changes by listening for the Intent.ACTION_LOCALE_CHANGED broadcast. The recommended maximum length is 40 characters; the value may be truncated if it is too long
like image 132
AskNilesh Avatar answered Sep 05 '25 00:09

AskNilesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!