Skip to content

Commit aa0d194

Browse files
authored
Merge pull request zo0r#939 from rafaelcamaram/master
Android >= 8.0 is not receiving notifications
2 parents 746190c + b7c2686 commit aa0d194

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ private void checkOrCreateChannel(NotificationManager manager) {
569569
}
570570
}
571571

572-
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, this.config.getChannelName(), importance);
572+
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, this.config.getChannelName() != null ? this.config.getChannelName() : "rn-push-notification-channel", importance);
573+
573574
channel.setDescription(this.config.getChannelDescription());
574575
channel.enableLights(true);
575576
channel.enableVibration(true);

0 commit comments

Comments
 (0)