diff --git a/android/react-native-fcm.iml b/android/react-native-fcm.iml
index 02e9551d664bdd53a12a6e8e9b5fd4c6f8dbccd5..c3148c6fcc15fdea8363b5d221a77398c91e7a95 100644
--- a/android/react-native-fcm.iml
+++ b/android/react-native-fcm.iml
@@ -82,7 +82,6 @@
-
@@ -94,7 +93,6 @@
-
diff --git a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
index ec47475d4f656794ad130a9a737951a7c72003b2..8361185073b0e674c003fd7e62e93e8be4d653d9 100644
--- a/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
+++ b/android/src/main/java/com/evollu/react/fcm/FIRLocalMessagingHelper.java
@@ -155,12 +155,10 @@ public class FIRLocalMessagingHelper {
notification.setDefaults(NotificationCompat.DEFAULT_LIGHTS);
}
- if(mIsForeground){
- Log.d(TAG, "App is in foreground, broadcast intent instead");
- Intent i = new Intent("com.evollu.react.fcm.ReceiveLocalNotification");
- i.putExtras(bundle);
- mContext.sendOrderedBroadcast(i, null);
- }
+ Log.d(TAG, "broadcast intent before showing notification");
+ Intent i = new Intent("com.evollu.react.fcm.ReceiveLocalNotification");
+ i.putExtras(bundle);
+ mContext.sendOrderedBroadcast(i, null);
if(!mIsForeground || bundle.getBoolean("show_in_foreground")){
Intent intent = new Intent(mContext, intentClass);