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)
- click on a input element which causes keyboard to open
- exit the app (not closing, just to the home)
- go back to the app (if the keyboard is still open, close it)
- click again an input
- scroll any scrollable element
- 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