diff --git a/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java b/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java index ff426b828164d3377374f0731089d13fc425f38c..adee2a88cf6d7c45b6a9d601004f6d76fe7c9d66 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java @@ -106,6 +106,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li } if (mngr.getNotificationChannel(id) != null) { promise.resolve(null); + return; } // NotificationChannel channel = new NotificationChannel( diff --git a/index.js b/index.js index 86088f5142000bf12953db6a7e45a908288f9a3f..0fd049eb03141df83e69e8b79911570f11df4815 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,7 @@ FCM.requestPermissions = () => { FCM.createNotificationChannel = (channel) => { if (Platform.OS === 'android') { - return RNFIRMessaging.createNotificationChannel(); + return RNFIRMessaging.createNotificationChannel(channel); } }