0
我遷移我的應用程序到Android O(API 26),創建NotificationChannel時通知信道組ID始終得到了忽略被忽略:組ID創建時NotificationChannel
NotificationManager nm; nm.createNotificationChannelGroup(new NotificationChannelGroup("test_group", "Test")); NotificationChannel newCh = new NotificationChannel("test_channel:id123", "Test", NotificationManager.IMPORTANCE_NORMAL); newCh.setGroup("test_group"); nm.createNotificationChannel(newCh); NotificationChannel ch = nm.getNotificationChannel("test_channel:id123"); // ch.getGroup() is null