I'm trying to test a HTML5-based game in my iPhone's browser that uses the phone's orientation. However, when I uploaded an example (from scirra.com/tutorials/4840/get-mobile-orientation-tilt-leftrightupdown-compass) to itch.io and the Scirra Arcade, they don't appear to be sensing anything.
Am I doing something wrong? The above example and others seem to work, but they were uploaded directly to a personal website, not hosted on another site.
Develop games in your browser. Powerful, performant & highly capable.
Geolocation probably requires https.
Accelerometer may not.
Geolocation probably requires https. Accelerometer may not.
So the HTTPS might be blocking accelerometer readings? Do you know a place or way to host the game with just HTTP? (I'm looking up setting up my own web server and that seems like a lot of work for just a prototype I want to make.)
You want https, not unsecured http.
I just checked on Ios 9.7, and its working with http, so it's likely that the iframe is the issue.
I'm not sure what you mean by "the iframe is the issue".
This is the link to the example I uploaded to itch.io: geraldfranklin.itch.io/vr-test
When I run the game, nothing works. But the same game on sizzle-games.com/Tilt works just fine.
Game portals embed games into web pages using iframes.
That's how they can show ads along with the game.