Skip to content
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

Chrome iOS won't load new scenes #88

Open
samthor opened this issue Dec 24, 2021 · 0 comments
Open

Chrome iOS won't load new scenes #88

samthor opened this issue Dec 24, 2021 · 0 comments
Labels

Comments

@samthor
Copy link
Contributor

samthor commented Dec 24, 2021

Describe the bug

Chrome on iOS - notably not Safari on iOS - won't load new scenes. (I presume this is actually to do with the underlying webview that Chrome has to use.)

To Reproduce

  1. Open Santa Tracker in Chrome on iOS
  2. Try to load another game or scene
  3. Wait and see the timeout

Notes

This is new in 2021.

Basically we try to load another <iframe> but never receive its hello payload (every scene that starts up posts a port to its parent) or see it render on the screen.

If you kill the previous frame immediately (rather than letting it stick around for a bit), sometimes it will load. My hunch is that iOS is severely limiting the number of frames that are allowed. The lifecycle around killing the previous frame is a bit nebulous though (even though I wrote it) - I'd suggest maybe taking a fresh look at in future.

The solution is: not sure. The entire architecture of Santa today leverages "disposable" cross-domain iframes to load games, which has worked pretty well for us.

@samthor samthor added the bug label Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant