Problem with web-app input autofocus in iOS 11

Hi, I have a web-app I wrote for converting units, and I want to have the keyboard automatically pop up when the web-app is opened. I added an “autofocus” attribute to the input field, and also added a line in JavaScript that focuses that input field on load. As far as I’m aware, it is not possible to make this work in a standard website. However, this combination of HTML attribute & JavaScript code used to work when the app was opened from the Home Screen as a web-app. But since upgrading to iOS 11, it stopped working. Any ideas on how to make an input field focus automatically when loading the web-app from the Home Screen? Thanks in advance.

Problem with web-app input autofocus in iOS 11
 
 
Q