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 a8567b36..a26c6ea7 100644 --- a/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java +++ b/android/src/main/java/com/evollu/react/fcm/FIRMessagingModule.java @@ -207,7 +207,7 @@ public void onActivityResult(Activity activity, int requestCode, int resultCode, @Override public void onNewIntent(Intent intent){ Bundle bundle = intent.getExtras(); - Boolean isLocalNotification = bundle.getBoolean("localNotification", false); + Boolean isLocalNotification = bundle != null && bundle.getBoolean("localNotification", false); sendEvent(isLocalNotification ? "FCMLocalNotificationReceived" : "FCMNotificationReceived", parseIntent(intent)); } }