Firebase通知LED闪烁

Nic*_*las 6 android led push-notification cordova firebase

我正在使用Cordova制作移动应用程序,我正试图通过谷歌的Firebase发送推送通知.

我能够设置title,body,badge,sound,等,但我想不出如何设置一个LED收到通知时闪烁.

我尝试过使用localNotification,但它需要应用程序始终运行.

你们有没有关于如何解决这个问题的想法?

小智 0

也许有点晚了,但对于其他读者来说:

在NotificationCompat.Builder中添加这个

.setLights(int argb, int onMs, int offMs)
Run Code Online (Sandbox Code Playgroud)

文档:

设置您希望设备上的 LED 闪烁的 argb 值以及速率。

来源:https ://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html