Log In  

PICO-8 carts exported to HTML won't work on iOS in web app mode (a.k.a full screen web app).
Add the following meta tag to your .html file:

<meta name="apple-mobile-web-app-capable" content="yes">

Open the page in Safari iOS, add it to the homescreen, then launch it from there.

Nothing happens, the execution of PICO-8 doesn't start though it works perfectly well when launched from Safari.

The device I'm testing on, an iPhone 5, is not powerful enough to debug the web page and crashes when I try, so I don't really know what's the problem. I suspect there is a limitation blocking Emscripten somehow, maybe with the eval() function in JavaScript. I know the JIT was (is still?) disabled in webview, but the particularities of the web app mode are not documented.

It's a shame that Apple is doing their best to ruin the HTML5 experience, probably to give the priority to their closed and controlled apps ecosystem.
I'm not an iOS expert, so if you have any idea on how to fix that, please let me know.

P#21423 2016-05-26 19:36 ( Edited 2016-05-27 12:49)

:: matt

What iOS version are you running on your phone?

P#21448 2016-05-27 03:36 ( Edited 2016-05-27 07:37)
:: edo999

I'm on the latest (v.9.3.2 or something like that).

P#21455 2016-05-27 05:38 ( Edited 2016-05-27 09:38)
:: Altx

do you have an ios ad blocker installed?

P#21458 2016-05-27 06:09 ( Edited 2016-05-27 10:09)
:: matt

Strangely enough this is my last week working at Apple. I'll file a bug report.

P#21461 2016-05-27 08:49 ( Edited 2016-05-27 12:49)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-03-07 14:45 | 0.011s | 2097k | Q:20