Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
PWA `beforeinstallprompt` not being fired on Android Webview

I created a PWA, display an install page if the app is not installed.

Install page contains an install button, beforeinstallprompt event handler enables the install button.

It is working fine and able to install if I open it from the chrome installed on the phone.

I shared the app URL by Facebook Messenger, and the browser opened by Facebook Messenger doesn't fire beforeinstallprompt event. MDN says beforeinstallprompt works on webView.

Is there anything else needed to work on webView? Here is my code

window.addEventListener("beforeinstallprompt", function(e) {
  e.preventDefault();
  document.getElementById('btnInstall').disabled = false;
  deferedEvent = e;
});
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

According to Progressive Web Apps in 2020 it won't work.

You can not install PWAs from Facebook Mobile Browser, Firefox Preview, WebViews, Custom Tabs or Chrome for DayDream (VR mode).

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda