Skip to content

Commit

Permalink
Remove verify notification, Closes #296
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd committed Jul 28, 2019
1 parent 406c115 commit 0873841
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);
Expand Down

0 comments on commit 0873841

Please sign in to comment.