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 b5aa4ff4..88c06eba 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 void getInitialNotification(Promise promise){ 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 void onActivityResult(Activity activity, int requestCode, int resultCode, @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)); } }