仅限setLights()的Android通知(仅限led)不会';行不通

仅限setLights()的Android通知(仅限led)不会';行不通,android,Android,在过去的几天里,我尝试了许多组合,试图让led通知灯工作,它只在通知使用声音时工作。无声音->无Led灯。有人有类似的问题吗?我正在Nexus5x和nexus10上测试这一点,它们的行为方式都是一样的。注意:通知通过状态栏显示,但不带led Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Notification.Builder notification

在过去的几天里,我尝试了许多组合,试图让led通知灯工作,它只在通知使用声音时工作。无声音->无Led灯。有人有类似的问题吗?我正在Nexus5x和nexus10上测试这一点,它们的行为方式都是一样的。注意:通知通过状态栏显示,但不带led

Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
        Notification.Builder notificationBuilder = new Notification.Builder(this)
                .setSmallIcon(R.drawable.ic_stat_dog_avatar)
                .setContentText(messageText)
                .setAutoCancel(true)
                .setContentTitle(messageTitle)

// when this is enabled, I see the led lights flashing, but the sound 
// is there also
//                .setSound(defaultSoundUri)

//with this or without, same effect
//                .setDefaults(NotificationCompat.DEFAULT_LIGHTS)
                .setLights(65280, 500, 500)
                .setContentIntent(pendingIntent);

你能得到这个吗?我正在尝试我的像素,但它似乎不起作用。不,仍然不知道如何做到这一点,最终使他们完全沉默。