Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

¿Por que no funciona Notification.requireInteraction en Firefox version 56.0B8 y en version 55.0.3?

  • 4 vastust
  • 2 on selline probleem
  • 2 views
  • Viimati vastas ufos.one

more options

Estoy realizando una web que manda una notification tipo push API, y al agregar el parametro de "requireInteraction"

var option = {
       icon: "/content/img/logo_dentalia.jpg",
       requireInteraction : true,
       body : "Usuario que esta usando el sistema: " + namePerson + " en la clinica: " + nameClinic
   }

en nunguno de mis navegadores de firefox funciona, se cierra a los 20 segundos, pero en Chrome si me funciona, de que otra forma puedo hacer que no se quite la notificacion hasta que el usuario le de click a la misma?

Estoy realizando una web que manda una notification tipo push API, y al agregar el parametro de "requireInteraction" var option = { icon: "/content/img/logo_dentalia.jpg", requireInteraction : true, body : "Usuario que esta usando el sistema: " + namePerson + " en la clinica: " + nameClinic } en nunguno de mis navegadores de firefox funciona, se cierra a los 20 segundos, pero en Chrome si me funciona, de que otra forma puedo hacer que no se quite la notificacion hasta que el usuario le de click a la misma?

Valitud lahendus

¡Hola!

Al parecer se trata de https://bugzilla.mozilla.org/show_bug.cgi?id=1346375

Por favor marca esta pregunta resuelta y sigue el bug.

Recuerda considerar https://www.mozilla.org/about/governance/policies/participation/ y https://bugzilla.mozilla.org/page.cgi?id=etiquette.html si comentas en el bug.

¡Gracias!

Loe vastust kontekstis 👍 1

All Replies (4)

more options

¡Hola!

Por favor revisa https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction y dinos si resuelve tu pregunta.

¡Gracias!

more options

alex_mayorga dijo

¡Hola! Por favor revisa https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction y dinos si resuelve tu pregunta. ¡Gracias!

Hola, ya probre ese metodo respRequireInteraction lo mando como true cuando llamo a la funcion alerta y aun asi no funciona requireInteraction, a los 20 segundos se quita la notificacion, mando el codigo de la funcion como lo estoy realizando.

function alerta(pat_id,respRequireInteraction){

   var nameEmbajador = document.getElementById("embajador").value;
   var nameClinic = document.getElementById("clinicName").value;
   var titulo = "Alerta para Embajador "+ nameEmbajador;
   var option = {
       icon: "/content/img/logo_dentalia.jpg",
       data : 'Este es el espacio del data',
       body : "El paciente SDI " +pat_id +" no se a comunicado, por favor llamarle " + nameClinic ,
       requireInteraction : respRequireInteraction
   }
   if (!("Notification" in window)) {
       alert("This browser does not support system notifications");
   }
   else if (Notification.permission === "granted") {
       var notification = new Notification(titulo, option);
   }
   else if (Notification.permission !== 'denied') {
       Notification.requestPermission(function (permission) {
       if (permission === "granted") {
           var notification = new Notification(titulo, option);
       }
       });
   }
   notification.onclick = function(dentalia){
       dentalia.preventDefault();
       window.open('http://xxxxxxxxxxxxxxx');
       return;
   }

}

more options

Valitud lahendus

¡Hola!

Al parecer se trata de https://bugzilla.mozilla.org/show_bug.cgi?id=1346375

Por favor marca esta pregunta resuelta y sigue el bug.

Recuerda considerar https://www.mozilla.org/about/governance/policies/participation/ y https://bugzilla.mozilla.org/page.cgi?id=etiquette.html si comentas en el bug.

¡Gracias!

more options

alex_mayorga dijo

¡Hola! Al parecer se trata de https://bugzilla.mozilla.org/show_bug.cgi?id=1346375 Por favor marca esta pregunta resuelta y sigue el bug. Recuerda considerar https://www.mozilla.org/about/governance/policies/participation/ y https://bugzilla.mozilla.org/page.cgi?id=etiquette.html si comentas en el bug. ¡Gracias!

Pues efectivamente me ayudo con mi problema en cierto modo, ya que modificanco el parametro dom.webnotifications.requireinteraction.enabled en el about me respeta el requireinteraction, pero claro solo en mi maquina, pero la quiero en todas las maquinas que entren a mi web, sabes de alguna liga que resuelva ese problema?