Android Studio Notification Lights -


why led lights not working notification?

notificationcompat.builder notificationbuilder = new notificationcompat.builder(this)                 .setdefaults(0)                 .setsmallicon(r.mipmap.ic_launcher)                 .setcontenttitle(remotemessage.getdata().get("username"))                 .setcontenttext(remotemessage.getnotification().getbody())                 .setvibrate(new long[]{1500, 0, 1500, 0})                 .setlights(color.blue, 2000, 1000)                 .setwhen(remotemessage.getsenttime())                 .setautocancel(true)                 .setpriority(notificationcompat.priority_high)                 .setstyle(new notificationcompat.bigtextstyle().bigtext(remotemessage.getnotification().getbody()))                 .setsound(ringtonemanager.getdefaulturi(ringtonemanager.type_notification))                 .setcontentintent(pendingintent);          notificationmanager notificationmanager = (notificationmanager) getsystemservice(context.notification_service);         notificationmanager.notify(0, notificationbuilder.build()); 

can help? cant find error.

i put notificationbuilder.setdefaults(0) on top still not working


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -