Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
Noty notification works only when Tab is in focus

I am using Noty library for showing notification in a web page.

That notification is fired with a signalr client callback from server.

What happens is, this notification is shown only when Chrome Tab is in active state. When I move out of that tab into some another tab,and if server message is received via signalr, other code runs fine like RefreshGrid, but noty notification does not come up. It shows when I again focus and switch back to that tab.

How to overcome this?

Following is the code for showing noty notification

HubProxy.client.shownotification = function (msg) {
    RefreshGrid(); //This is working fine whether tab is active or not
    new Noty({
        theme: globaltheme,
        type: msg.TYPE,
        layout: globalposition,
        text: '<i class="bi bi-check-square me-1"></i>' + msg.MESSAGE,
        timeout: globaltimer,
        animation: {
            open: 'animated bounceInRight', // Animate.css class names
            close: 'animated bounceOutRight' // Animate.css class names
        },
        callbacks: {
            afterShow: function () {  }
        }
    }).show();
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In general, the visibilityControl option is responsible for disabling this behavior. But why is it not working.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda