OGeek|极客世界-中国程序员成长平台

标题: android - 如果不使用删除,是否可以在创建通知 channel 重要性级别后更新它? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-9 06:50
标题: android - 如果不使用删除,是否可以在创建通知 channel 重要性级别后更新它?

不删除 channel 。

在Android上创建通知 channel 后,是否可以通过应用更新来更新特定 channel 的重要性级别? 只是再次调用 createNotificationChannel 或重新安装应用程序是不够的。



Best Answer-推荐答案


不,这不可能。

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.

关于android - 如果不使用删除,是否可以在创建通知 channel 重要性级别后更新它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47557613/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://www.ogeek.cn/) Powered by Discuz! X3.4