Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit a110a0b

Browse files
committed
Set default vibration to the channel.
1 parent 32fe0da commit a110a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,9 @@ public void checkOrCreateDefaultChannel() {
670670

671671
int importance = NotificationManager.IMPORTANCE_HIGH;
672672

673-
String channel_id = NOTIFICATION_CHANNEL_ID + "-" + importance;
673+
String channel_id = NOTIFICATION_CHANNEL_ID + "-" + importance + "-" + DEFAULT_VIBRATION;
674674

675-
checkOrCreateChannel(manager, channel_id, null, importance, new long[] {0});
675+
checkOrCreateChannel(manager, channel_id, null, importance, new long[] {0, DEFAULT_VIBRATION});
676676
}
677677

678678
private void checkOrCreateChannel(NotificationManager manager, String channel_id, Uri soundUri, int importance, long[] vibratePattern) {

0 commit comments

Comments
 (0)