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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -