Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
PWA on android shrinks viewport then gets stuck after keyboard is closed

I Have a PWA (also TWA) that is used as full screen to get the most space out of the device (used in landscape), I can't 100% reproduce the bug, but sometimes when i press the inputs and keyboard shows up, whenever i close the keyboard, the viewport doesn't get back to the original size but gets stuck, as if the keyboard was still open. To fix the issue you have to exit the app and open again, it's very annoying.

EDIT: i think i found a way to reproduce the bug (only happens in chrome)

  1. click on a input element which causes keyboard to open
  2. exit the app (not closing, just to the home)
  3. go back to the app (if the keyboard is still open, close it)
  4. click again an input
  5. scroll any scrollable element
  6. close the keyboard (or unfocus the current element)

I connected my phone to debug and i tested out some ways to fix the issue, i set the HTML and body elements to have the same pixel size as the screen, the element itself gets the correct size but the actual UI doesn't change.

PWA link: https://specy.github.io/genshinMusic/#/

TWA link: https://play.google.com/store/apps/details?id=genshinmusic.specy.twa

Repo: https://github.com/Specy/genshin-music

Video showing the bug enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda