From 73261b4457e19e4b43fee3da8fc743e4b2989bc4 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Sat, 30 Sep 2017 14:41:49 -0400 Subject: [PATCH] don't filter out main activity because of samsung --- .../java/com/evollu/react/fcm/FIRMessagingModule.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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 b5aa4ff..88c06eb 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java @@ -62,12 +62,7 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li promise.resolve(null); return; } - Intent intent = activity.getIntent(); - if(intent.getAction() != null && intent.getAction().equals("android.intent.action.MAIN")){ - promise.resolve(null); - return; - } - promise.resolve(parseIntent(intent)); + promise.resolve(parseIntent(activity.getIntent())); } @ReactMethod @@ -308,10 +303,6 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li @Override public void onNewIntent(Intent intent){ - // don't call notification if it is started from icon - if(intent.getAction() != null && intent.getAction().equals("android.intent.action.MAIN")){ - return; - } sendEvent("FCMNotificationReceived", parseIntent(intent)); } } -- 2.26.2