不删除 channel 。
在Android上创建通知 channel 后,是否可以通过应用更新来更新特定 channel 的重要性级别? 只是再次调用 createNotificationChannel 或重新安装应用程序是不够的。
不,这不可能。
如 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 |