Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
La notificación de Noty solo funciona cuando la pestaña está enfocada

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(); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

En general, la opción visibilityControl es la encargada de deshabilitar este comportamiento. Pero por qué no funciona.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!