在不使用删除的情况下,是否可以在创建通知渠道重要性级别后对其进行更新?
Without using the delete, is possible to update a Notification Channel Importance level after it was created?
不删除频道。
在 Android 上创建通知渠道后,是否可以通过应用程序更新来更新特定渠道的重要性级别?
仅再次调用 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.
根据 specs,您可以再次调用 createNotificationChannel
,但重要性级别 较低:
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.
不删除频道。
在 Android 上创建通知渠道后,是否可以通过应用程序更新来更新特定渠道的重要性级别? 仅再次调用 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.
根据 specs,您可以再次调用 createNotificationChannel
,但重要性级别 较低:
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.