我有此代碼的通知:機器人:通知聲音禁用
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 –