From bbf4557b54f3c6b2ad755a67523e096835722e01 Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Mon, 4 Dec 2017 16:11:32 +0100 Subject: [PATCH] [1216] Use system default for vibration pattern (#1247) --- .../java/com/mattermost/rnbeta/CustomPushNotification.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java b/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java index bc4f06f59..98881b318 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java @@ -265,8 +265,8 @@ public class CustomPushNotification extends PushNotification { boolean vibrate = notificationPreferences.getShouldVibrate(); if (vibrate) { - // Each element then alternates between delay, vibrate, sleep, vibrate, sleep - notification.setVibrate(new long[] {1000, 1000, 500, 1000, 500}); + // use the system default for vibration + notification.setDefaults(Notification.DEFAULT_VIBRATE); } boolean blink = notificationPreferences.getShouldBlink();