我有此代码的通知:机器人:通知声音禁用
Notification notifica = new Notification();
notifica.flags |= Notification.FLAG_AUTO_CANCEL;
notifica.icon = R.drawable.serie_notification;
notifica.when = System.currentTimeMillis();
与notifica.defaults = notifica.defaults | Notification.DEFAULT_SOUND;我启用默认声音,但如果我想禁用声音,我该怎么办?
我认为这是默认情况下禁用。我不记得它在声明我发出的通知... – Bob
当通知频道在定位API 26(Android O)时存在一个错误https://stackoverflow.com/questions/45919392/disable-sound-from -notificationchannel –