JavaScript - Notificaciones Js no se muestran en Android

 
Vista:

Notificaciones Js no se muestran en Android

Publicado por Alumno88 (2 intervenciones) el 13/02/2020 23:21:32
por que las notificaciones de escritorio que hice en js de mi pagina web, NO SE MUESTRAN EN ANDROID. en chrome windows si se muestran y en chrome android no.... Porque que necesito para que se muestren.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de joel
Val: 3.506
Oro
Ha mantenido su posición en JavaScript (en relación al último mes)
Gráfica de JavaScript

Notificaciones Js no se muestran en Android

Publicado por joel (895 intervenciones) el 14/02/2020 10:33:07
Como estas enviando las notificaciones? en principio tendrían que mostrarse.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Notificaciones Js no se muestran en Android

Publicado por Alumno88 (2 intervenciones) el 14/02/2020 21:25:02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function notifyMe() {
  // Let's check if the browser supports notifications
  if (!("Notification" in window)) {
    console.log("This browser does not support desktop notification");
  }
 
  // Let's check whether notification permissions have alredy been granted
  else if (Notification.permission === "granted") {
    // If it's okay let's create a notification
    var notification = new Notification("Alerta!",{
      icon:"https://i.pinimg.com/originals/ae/e2/3f/aee23f579754fe36ea8cc2643597ca5a.jpg",
      body:"Movimiento en la ENTRADA",
      timeout: 15000
    });
    notification.onclick = function(){
      window.open("https://myhousing.com");
      pauseAudio();
      this.close();
    }
  }
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar