Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PWA IOS/Safari redirect navbar height problem

My pwa redirects you to another url for auth. Doing so the bottom browser navbar appears. When redirecting back the navbar disappears because the pwa is in fullscreen.

The problem is that there is a white margin at the bottom. The body { height: 100%} is not taking up 100% of the screen.

This actually explains my problem exactly, however the answer is not really satisfying https://discussions.apple.com/thread/251535534

like image 910
Benny Avatar asked Oct 17 '25 21:10

Benny


1 Answers

fixed by adding viewport-fit=cover in the header

<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
like image 162
Benny Avatar answered Oct 19 '25 13:10

Benny



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!