Video: iOS 4.2 brings accelerometer support to Safari

[youtube]http://www.youtube.com/watch?v=0-e_UWhY5aY[/youtube]

iOS 4.2.1 brought over 100 novelties, many of them referring to solving security and performance problems. For iOS Safari. 4.2.1 brought some News quite interesting, for the iPhone I would mention the possibility of doing searches on the page, the introduction of the AirPrint option and some performance improvements. On the other hand, for web developers iOS 4.2.1 brought in Safari support for:

  • Accelerometer & Gyroscope support through the DeviceOrientation API
  • WebSockets API from HTML5
  • Updated HTML5 Form Support
  • Partial XHR-2 Support
  • Print Support
  • New JavaScript data types
  • New DOM events
  • Enhanced SVG and Canvas support

What interests us? First of all, the accelerometer and gyroscope support. In the video clip above, you have a demonstration of how Safari interacts with applications from certain sites. More precisely, now we can use the accelerometer to interact with the sites/play games/etc, but this only if the web developers will implement the APIs made available by Apple in their own sites. You can also take the above test by accessing the page. I did not manage to get the same results as in the video http://ad.ag/wjmtgt , but it partially worked.

Secondly, Apple has improved the support for HTML5 so that the pages made in HTML5 should load faster and the interaction with them should be much more fluid, but again here everything depends on how the web developers make their site the The improvements brought to HTML5 will also affect the way video clips work, but again I return to the idea above.

For iPhone/iPod Touch, the news in iOS 4.2.1 includes more performance improvements and the addition of support for certain functions.