1 - Create a UI button. When it’s clicked, set SetActive to false. Or whatever. Any visible effect.
2 - Select WebGL as the target and build the project.
3 - Host the build folder somewhere, I usually use https://app.netlify.com/ .
4 - Now access the game with Safari, on an iPhone. You click on the button and it goes invisible. That’s it, great. The problem comes on the next steps.
5 - Reload the page.
6 - If you already have multiple tabs open, switch to any other tab on Safari. If not, create a new tab and switch to it.
7 - Switch back to the game tab.
8 - Try to click on the button. It won’t work.
Unity version: 2020.2.1f1.
This bug doesn’t seem like a big deal, but it is. Specially when you have a game with buttons that opens links to new tabs, redirecting to social media websites for example. Then the client wants to go back, and the buttons are not working anymore.
I have this bug on a project with Unity 2020.1.1f1, in fact this bug only occurs once with Safari (if I reload the page the bug no longer appears and I can open as many links as I want ) but it is permanent with Chrome (Firefox is not affected). @Marks4 : Did you find a workaround ?
The bug is permanent on Safari for me. I didn’t test on other browsers on the iPhone. But it doesn’t happen on Chrome for Android. Unfortunately I didn’t find any workaround.
@jukka_j I see that you’re back! I am so glad! I created a bug report about this issue but so far it doesn’t seem that it was acknowledged, I didn’t get any reply from the devs.
@jukka_j Here’s a video showing the problem. When I click on the button, a text shows up. After I reload the experience, open a new tab and go back to the webgl experience, I can’t click on the button. The control does not go back to Unity. The button is unclickable.
@jukka_j Should I try to send another bug report, or is this being tracked? I’m sure this bug doesn’t seem like a big deal, but it is. There are experiences where I need to put social media buttons like facebook and instagram and the client wants them to open on a new tab, and when the user switches back to the experience he can’t click on anything.
Thanks for the video, now it is more clear. Looking at our bug database, I don’t unfortunately see an issue that would have reached the WebGL team at least. If it has been a long ago since you reported the first issue, maybe try opening another one. Preferably attach the video so that QA can concretely see the issue in action.
When an issue is reported to Fogbugz, it actually goes first to QA inbox for triage, so we don’t see the issue in the web team until QA successfully reproduces it and flags it as an active bug to the team. Can you remind me some time next week if you don’t hear back, and I can try to dig it up from the triage. Currently wrangling some 15 bugs on my desk, so I’ll give this one some time before breating over QA’s neck.
@jukka_j Hey man, I got a reply from “Joris Namajunas” from the customer QA team, that WebGL builds are not supported on mobile devices, so they won’t create an issue for this. I guess you’ll need to jump in.
Sorry about that. We have had conversation about the changed status of WebGL mobile development with QA, but it looks like our communication has not reached all corners of their team. I’ll check out the issue.
Oh, that’s the old one. A new fogbuz entry was created for the same bug. They are duplicated now. I hadn’t noticed that the email was about the first bug report. The new one has the video attached. I guess it doesn’t matter though.
I just tested this bug and unfortunately wasn’t able to reproduce the problem with your example. I tried with a build from 2020.1 and 2021. When I switch tabs and return, the button still works for me. What version of Unity and iOS are you seeing this on?