pygbag: Touching "Ready to Start !" on iOS 17.1.1 (iPhone 14 Pro) Doesn't Do Anything
Hello,
When I use my laptop to run my pygbag game, I am able to click on “Ready to Start !” and play the game (Mac M1 with Google Chrome). However, when I use my iPhone 14 Pro with Safari or Google Chrome browsers and try to touch the message, nothing happens.
The game (as an example) is https://bradwyatt.github.io/clickball/, but this extends to any other pygbag games hosted in browsers that I’ve tried.
My only workarounds so far to get this to work on iPhone/iPad:
Workaround #1) This will auto-start without “Ready to Start!”: pygbag --ume_block 0 main.py. However, this is not optimal because you’ll get a pop-up message “play() failed because the user didn’t interact with the document first”
Workaround #2) When I touch on anywhere on the page outside of the game, the game does seem to start.
Workaround #3) I have a trackpad on my iPad, and when I use my trackpad (with accessibility) to do a click, that works.
Thanks
About this issue
- Original URL
- State: open
- Created 7 months ago
- Comments: 17 (8 by maintainers)
Hi, first please retry with the
--gitoption on pygbag build.i don’t have access to a physical device to fix that - javascript - bug, and only safari 15 was tested ok for now (with git version) . The only workaround that works right now is
--ume_block 0and wait for a click in pygame loop before starting background music.