How can I make a notification that doesn\'t make a sound when I build it? I am building a notification, and my users don\'t like the fact that it makes a sound.
Use this If you want all (sound, vibration and lights) in notifications.
builder.setDefaults(Notification.DEFAULT_ALL);
Or you can enable or disable items based on your requirements.
builder.setDefaults(Notification.DEFAULT_LIGHTS | Notification.DEFAULT_SOUND | Notification.DEFAULT_VIBRATE);
comment this line if you want nothing.