Estoy usando la biblioteca Noty para mostrar notificaciones en una página web.
Esa notificación se activa con una devolución de llamada del cliente del señalador desde el servidor.
Lo que sucede es que esta notificación se muestra solo cuando Chrome Tab está en estado activo . Cuando salgo de esa pestaña a otra pestaña, y si se recibe un mensaje del servidor a través de Signalr, otro código funciona bien como RefreshGrid, pero no aparece ninguna notificación. Se muestra cuando vuelvo a enfocar y vuelvo a esa pestaña.
¿Cómo superar esto?
El siguiente es el código para mostrar la notificación noty
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(); }En general, la opción visibilityControl es la encargada de deshabilitar este comportamiento. Pero por qué no funciona.