fixed bug for alerting near by equipment when app is in foreground