Skip to content

Commit

Permalink
Merge pull request #349 from wix/removeVerifyNotification
Browse files Browse the repository at this point in the history
Remove verify notification, Closes #296
  • Loading branch information
yogevbd authored Jul 28, 2019
2 parents fab9f8b + 0873841 commit 57190f7
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 57190f7

Please sign in to comment.