Commit 2e60653d authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #726 from haggholm/sdk-26

Bugfixes for sdk-26 branch
parents 4b1cd17b ce35f327
...@@ -106,6 +106,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li ...@@ -106,6 +106,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
} }
if (mngr.getNotificationChannel(id) != null) { if (mngr.getNotificationChannel(id) != null) {
promise.resolve(null); promise.resolve(null);
return;
} }
// //
NotificationChannel channel = new NotificationChannel( NotificationChannel channel = new NotificationChannel(
......
...@@ -64,7 +64,7 @@ FCM.requestPermissions = () => { ...@@ -64,7 +64,7 @@ FCM.requestPermissions = () => {
FCM.createNotificationChannel = (channel) => { FCM.createNotificationChannel = (channel) => {
if (Platform.OS === 'android') { if (Platform.OS === 'android') {
return RNFIRMessaging.createNotificationChannel(); return RNFIRMessaging.createNotificationChannel(channel);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment