The game cannot be played on iPhone #37
Labels
bug
Something isn't working
good first issue
Good for newcomers
Hacktoberfest
help wanted
Extra attention is needed
react
The game cannot be played on iPhone
When you start the game on a mobile phone in portrait mode, you can see a screen indicating that you have to rotate your phone to be able to play the game.
Users have reported that opening the game on an Iphone, they just see a blank screen. 😟
To solve this issue, you first have to make a little research to know exactly which browsers are affected🧐. Currently, we are using the
Screen.orientation
property to detect the orientation device and theorientationchange
event to hide/show the Game. You can find this logic insrc/containers/Orientation.js
.I am not pretty sure how to approach this issue, probably we can create a polyfill or simply get rid of
Screen.orientation
and make use ofresize
and make it work in certain breakpoint Any suggestion would be appreciated. 🙏The text was updated successfully, but these errors were encountered: