From e271c0f725c49163a8dc83bee236f14ff3ca921f Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Fri, 2 Dec 2016 19:43:08 -0500 Subject: [PATCH] remove abort broadcast --- android/react-native-fcm.iml | 71 ++++++++++++------- .../evollu/react/fcm/FIRMessagingModule.java | 4 -- 2 files changed, 45 insertions(+), 30 deletions(-) diff --git a/android/react-native-fcm.iml b/android/react-native-fcm.iml index c3148c6..aa83db1 100644 --- a/android/react-native-fcm.iml +++ b/android/react-native-fcm.iml @@ -33,12 +33,14 @@ + + @@ -65,14 +67,6 @@ - - - - - - - - @@ -81,53 +75,78 @@ - + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + - - + - + - + + - + + - + - - - - - + - - + - + + + + - + \ No newline at end of file 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 633eb60..c7446cc 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java @@ -138,9 +138,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li public void onReceive(Context context, Intent intent) { if (getReactApplicationContext().hasActiveCatalystInstance()) { String token = intent.getStringExtra("token"); - sendEvent("FCMTokenRefreshed", token); - abortBroadcast(); } } }, intentFilter); @@ -208,7 +206,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li } } sendEvent("FCMNotificationReceived", params); - abortBroadcast(); } } @@ -223,7 +220,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li public void onReceive(Context context, Intent intent) { if (getReactApplicationContext().hasActiveCatalystInstance()) { sendEvent("FCMNotificationReceived", Arguments.fromBundle(intent.getExtras())); - abortBroadcast(); } } }, intentFilter); -- 2.26.2