Skip to content

Commit 57190f7

Browse files
authored
Merge pull request #349 from wix/removeVerifyNotification
Remove verify notification, Closes #296
2 parents fab9f8b + 0873841 commit 57190f7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java

-12
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ public void onAppNotVisible() {
4343
};
4444

4545
public static IPushNotification get(Context context, Bundle bundle) {
46-
if (verifyNotificationBundle(bundle) == false) {
47-
return null;
48-
}
49-
5046
Context appContext = context.getApplicationContext();
5147
if (appContext instanceof INotificationsApplication) {
5248
return ((INotificationsApplication) appContext).getPushNotification(context, bundle, AppLifecycleFacadeHolder.get(), new AppLaunchHelper());
@@ -62,14 +58,6 @@ protected PushNotification(Context context, Bundle bundle, AppLifecycleFacade ap
6258
mNotificationProps = createProps(bundle);
6359
}
6460

65-
private static boolean verifyNotificationBundle(Bundle bundle) {
66-
if (bundle.getString("google.message_id") != null) {
67-
return true;
68-
}
69-
70-
return false;
71-
}
72-
7361
@Override
7462
public void onReceived() throws InvalidNotificationException {
7563
postNotification(null);

0 commit comments

Comments
 (0)