I have a use-case where I need to know whether a web application is on an iOS device using a virtual keyboard. But there seems to be no good way of doing this without using browser sniffing, which I understand is not advisable.
The best solution on stackoverflow seems to be this one from 2010 and it seems to be a very hacky solution.
Is there really no better approach to this problem? Is the above answer still the best?