Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

push notification

  • 1 resposta
  • 1 tem este problema
  • 17 visualizações
  • Última resposta por Balázs Meskó

more options

I was trying to push a notification in firefox. The title and body part is coming fine, but the image is not coming. When I attempted the same in chrome. Everything is fine. Is image not supported in firefox service worker? By the way, i am using firefox quantum 59.0.3 (64-bit) windows 10. Also I am using FCM for pushing messages.

I was trying to push a notification in firefox. The title and body part is coming fine, but the image is not coming. When I attempted the same in chrome. Everything is fine. Is image not supported in firefox service worker? By the way, i am using firefox quantum 59.0.3 (64-bit) windows 10. Also I am using FCM for pushing messages.
Capturas de ecrã anexadas

Solução escolhida

As you can see here: https://developer.mozilla.org/en-US/docs/Web/API/notification/image, this feature currently is only available in Chrome and Opera.

Icons work fine though, that could suit for you needs: https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon

Ler esta resposta no contexto 👍 0

Todas as respostas (1)

more options

Solução escolhida

As you can see here: https://developer.mozilla.org/en-US/docs/Web/API/notification/image, this feature currently is only available in Chrome and Opera.

Icons work fine though, that could suit for you needs: https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon

Modificado por Balázs Meskó a