Hi I'am building a PWA with react and I've been trying to add a padding to my Footer to avoid the safe area, but for some reason it's always 0px;
I have these tags in HTML:
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="mobile-web-app-capable" content="yes">
And I'm trying to set the CSS like this for my footer:
padding-bottom: env(safe-area-inset-bottom);
It's always 0px!
I had the same issue and there are two things I found out:
height: 100%oroverflow: ...in any parentHowever, I'm still looking for a solution to fix it if you safe it to the home screen via the "Add to home screen" option. It's all very annoying.
env(safe-area-inset-bottom) not working in css