Disable vibration for a notification
After a long trial & error session, I think I finally understood what’s wrong. The problem lies in this instruction notificationBuilder.setDefaults(Notification.DEFAULT_ALL). No matter what parameter you pass to notificationBuilder.setVibrate() after setting DEFAULT_ALL or DEFAULT_VIBRATE will be silently discarded. Someone at Google must have decided to give a higher precedence to setDefaults than to setVibrate. This … Read more