-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touching "Ready to Start !" on iOS 17.1.1 (iPhone 14 Pro) Doesn't Do Anything #138
Comments
Hi, first please retry with the 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) . |
Thanks for quick response. When I did the Should I be using the I can try implementing your workaround (once I get the time). |
In my browser, when I use a mobile simulator and select iPhone, it works without a problem. I'm guessing because the simulator treats clicks like taps. So I'm not sure if that's an accurate way of figuring this problem out. Regarding |
just |
I just committed |
I updated my clickball game to include a start menu that requires a click before playing. I also included code to generate a .wav sound when the ball is clicked. After my code changes, I then did The desktop browser works perfectly, including the sound when the ball is clicked. However, for mobile, even though I can click to start the game and can still play the game, the sound doesn't play at all when I click on the ball. How can I get the sound to work? |
Sound is working for me on safari 15 with your new build. btw do not use wav but ogg instead whereever possible. |
Ok, I replaced wav with ogg with the new build. Yes, Safari on my desktop has the sound working for this. However, when I try iPhone 14 Pro (17.1) whether it's through Chrome or Safari, the sound still does not play. Interestingly enough, on my desktop computer, I used Mobile FIRST extension on for Google Chrome and emulating iPhone 13, and that did generate sound. Also, it's up to you, but if you want, this sound issue I'm experiencing can be created as a separate issue within this Github repo, since I no longer need an answer to my original question regarding "Ready to Start !". |
i could repro on iphone 14 pro with safari/chrome 16 but i cannot access devtools :( |
Is there anything I can do to help you troubleshoot this to solve this issue? I had someone try to play the game with a Pixel 7 and it also didn't have sound (just like my iPhone 14 Pro). Do you have any pygbag examples hosted online that I can attempt to try to load via my iPhone 14 Pro, and I can let you know if the sounds works? If the sound works on the pygbag examples online, then perhaps the culprit is the way my project was built. But if not, maybe it's a bug in pygbag. |
it would be nice of you to try some of the itch games https://itch.io/c/2563651/pygame-wasm and find some that don't work on ios so i can cross check failing init methods |
Keep in mind, iOS also just updated to 17.1.2 last night. I wasn't able to find any of the games to either start successfully, or if it did start successfully, to have sound. Here are a few examples: SpeedCube and Neighborhood Postal Service- I can't even click "Ready to Start!" on mobile (on desktop I can click it, and the game has sound) Interestingly enough, for many of the games, on the page before clicking "Run Game", it says "This game is not designed to run on your device. Add it to a collection to play later, or you can try to run it anyway." I think all of the games that mention this are in the same category as SpeedCube, where they won't even start. |
ok then it is the safari detection that is failing, could you give me the content of edit/ seems there is always the word "iPhone" in it, pushing a fix to try aff1028 with |
When I go to the barcode that you sent via my iPhone, this is what I get (and I can't move to the right on the screen, the white part cuts it off) Also, Google Chrome and Safari both have the same results on mobile when I try running a pygbag game online and I get no sound. |
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
The text was updated successfully, but these errors were encountered: