4

Without deleting the channel.

After created a notification channel on Android, is that possible to update the importance level of a specific channel though application update? Just calling the createNotificationChannel again or reinstalling the app is not being enough.

JonasOliveira
  • 694
  • 8
  • 26

2 Answers2

4

No, it's not possible.

As explained in the documentation:

You can't programmatically modify the behavior of a notification channel after it's created and submitted to the notification manager; the user is in charge of those settings after creation.

jmart
  • 2,769
  • 21
  • 36
  • Thanks @jmart, yes it is true. The only way is creating a new channel changing its ID. – JonasOliveira Nov 30 '17 at 15:29
  • We cant even create the same channel with same id. I did it , but need some google documentation stating this . – karthik kolanji Oct 10 '18 at 11:32
  • Shame on you GOOGLE! – Reza Feb 15 '19 at 21:28
  • 1
    This is so buggy... One of our users reported that he installed the application when he had the device in spanish and when he switched the application to english the notification settings remained in spanish! – madlymad Apr 09 '19 at 19:38
  • as far as I'm aware, you can simply try to create the channel again with the same id but different name to overcome the problem mentioned by madlymad. you can do it when user switches the language, so your channels are renamed. – Javad Jun 03 '23 at 19:05
1

According to the specs, you can invoke createNotificationChannel again, with a lower importance level only:

The importance of an existing channel will only be changed if the new importance is lower than the current value and the user has not altered any settings on this channel.

Eir
  • 1,003
  • 9
  • 24