In my test code, I used
notification.flags |= Notification.DEFAULT_SOUND; notification.flags |= Notification.DEFAULT_LIGHTS;
This did not work, and according to the answer I got another question , I changed the flags to .defaults, and it works.
notification.defaults |= Notification.DEFAULT_SOUND; notification.defaults |= Notification.DEFAULT_LIGHTS;
In the documentation, both fields: flags and default values are the same.
When will I use which one? Can I set 2 flags of the same family?
source share