georgefst / monpad

A fully-customisable web-based gamepad, designed to be used from smartphones.
BSD 3-Clause "New" or "Revised" License
39 stars 5 forks source link

iOS issues #40

Closed georgefst closed 1 year ago

georgefst commented 2 years ago

Now that I have access to an iPad, I can starting testing on iOS more regularly. The basics now work on any of the three major browsers (in fact, all browsers seem to behave exactly the same - I think they're effectively re-skins of Safari), which is a lot more than could be said a year ago.

Unfortunately I couldn't get fullscreen to work with any of them. Even document.documentElement.webkitRequestFullscreen on iPad, which is the one thing that apparently should work, as of version 12. Currently pressing Monpad's fullscreen button locks up the page completely, requiring a refresh. So we've disabled it in 7637f76d85e1132c749ffd92acf2b1f45bbe71f0. EDIT: Something has changed here, because my iPad is now showing the fullscreen button again, even though it still crashes when the button is pressed.

Long pressing anywhere on the screen triggers text selection, even though I've set for this to be disabled, and it's respected by all other browsers and OSs I've used.

There may also be issues with sound, vibration etc. due to iOS being very strict about permissions.

georgefst commented 2 years ago

Vibration and sound both fail, and lock up the screen, just as fullscreen did. We should look in to whether there's any way to obtain the necessary permissions. But otherwise we should disable those too (maybe we should just discourage use of the Vibrate message altogether, seeing as it isn't widely supported (and doesn't work at all in my preferred browser, firefox on android)).

georgefst commented 1 year ago

Breaking this in to more granular issues. See https://github.com/georgefst/monpad/labels/Apple.