From 08738415e98977d829f9c6654302316c604bddbe Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 29 Jul 2019 01:09:56 +0300 Subject: [PATCH] Remove verify notification, Closes #296 --- .../core/notification/PushNotification.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java b/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java index 2c970e940..3ea5eb3d0 100644 --- a/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java +++ b/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java @@ -43,10 +43,6 @@ public void onAppNotVisible() { }; public static IPushNotification get(Context context, Bundle bundle) { - if (verifyNotificationBundle(bundle) == false) { - return null; - } - Context appContext = context.getApplicationContext(); if (appContext instanceof INotificationsApplication) { return ((INotificationsApplication) appContext).getPushNotification(context, bundle, AppLifecycleFacadeHolder.get(), new AppLaunchHelper()); @@ -62,14 +58,6 @@ protected PushNotification(Context context, Bundle bundle, AppLifecycleFacade ap mNotificationProps = createProps(bundle); } - private static boolean verifyNotificationBundle(Bundle bundle) { - if (bundle.getString("google.message_id") != null) { - return true; - } - - return false; - } - @Override public void onReceived() throws InvalidNotificationException { postNotification(null);