I am building a chatbot in vanilla Javascript, it works just fine in Android phones but in iPhones shows a blank space when the keyboard is open and I scroll down. I read that the "safe area" is causing but I´m not really sure how to fix it in vanilla JavaScript.
I tried doing this https://developer.mozilla.org/en-US/docs/Web/CSS/env but it doesn´t seem to work.
The image looks like this Blank space coming between keyboard and UIVew in iOS
Any ideas?