This is supposed to suppress notifications if app is active, however, it just breaks notifications.