Enable vibration by default for high and default importance notification channels
This commit is contained in:
@@ -56,6 +56,7 @@ public class NotificationSupport {
|
|||||||
NotificationManager.IMPORTANCE_DEFAULT);
|
NotificationManager.IMPORTANCE_DEFAULT);
|
||||||
messagesImportanceDefault.enableLights(true);
|
messagesImportanceDefault.enableLights(true);
|
||||||
messagesImportanceDefault.setLightColor(Color.CYAN);
|
messagesImportanceDefault.setLightColor(Color.CYAN);
|
||||||
|
messagesImportanceDefault.enableVibration(true);
|
||||||
|
|
||||||
NotificationChannel messagesImportanceHigh =
|
NotificationChannel messagesImportanceHigh =
|
||||||
new NotificationChannel(
|
new NotificationChannel(
|
||||||
@@ -64,6 +65,7 @@ public class NotificationSupport {
|
|||||||
NotificationManager.IMPORTANCE_HIGH);
|
NotificationManager.IMPORTANCE_HIGH);
|
||||||
messagesImportanceHigh.enableLights(true);
|
messagesImportanceHigh.enableLights(true);
|
||||||
messagesImportanceHigh.setLightColor(Color.CYAN);
|
messagesImportanceHigh.setLightColor(Color.CYAN);
|
||||||
|
messagesImportanceHigh.enableVibration(true);
|
||||||
|
|
||||||
notificationManager.createNotificationChannel(foreground);
|
notificationManager.createNotificationChannel(foreground);
|
||||||
notificationManager.createNotificationChannel(messagesImportanceMin);
|
notificationManager.createNotificationChannel(messagesImportanceMin);
|
||||||
|
|||||||
Reference in New Issue
Block a user