On opening web app in ios, window.innerHeight is giving height less than what it is(window.innerheight < screen.height minus permanent or semipermanent user interface features displayed by the safari, such as the URL taskbar) but after a refresh, it gives desired height. I also tried to use window.screen.availHeight to get the height of screen available(screen.height minus permanent or semipermanent user interface features displayed by the safari, such as the URL taskbar) but it is giving the height of the entire screen. Can anyone please tell or suggest the solution for the same.
P.S. I am using react.js for web app.