📜 ⬆️ ⬇️

Mobile Safari in iOS 4.2.1 supports accelerometer and WebSockets

In iOS 4.2.1, Safari has added support for the accelerometer (gyroscope) and WebSockets.

Maximiliano Firtman posted on YouTube a video with a demonstration of new features, control of the ball rolling on the web page using a gyroscope (the position of the ball is read 50 times per second).


')


If you have a device with iOS 4.2.1, try - www.mobilexweb.com/samples/ball.html

Apparently there will be many online games soon, of which developers will not be particularly interested in the AppStore.

About WebSockets have already been written in detail here on Habré

Source: https://habr.com/ru/post/108714/


All Articles