Tuesday, November 23, 2010, 01:00 pm PT (04:00 pm ET)
Apple adds accelerometer, WebSockets support to Safari in iOS 4.2With the release of iOS 4.2 for the iPhone and iPad, Apple has added WebSockets and accelerometer support in the Mobile Safari Web browser for developers.
The new features, detailed by Mobile Web Programming, allow Web developers the ability to offer users more features when a site is accessed from an iOS-powered device. In one example, author Maximiliano Firtman created a demonstration with a virtual on-screen ball that moves based on the orientation of an iOS device.
Mobile Safari in iOS 4.2, released on Monday, also supports WebSockets, a W3C HTML5 API that will help chat and real-time applications that rely on a connection to a server using TCP sockets. Other updates to Mobile Safari include support for HTML5 forms, AJAX 2, print commands, and more.
Apple has pushed HTML5 and open Web standards for its mobile devices, including the iPhone and iPad. In September, AppleInsider revealed that Apple had created a "creative technology team" that would create new, interactive HTML5-based content to demonstrate the "innovative" capabilities of websites.
Apple also featured the interactive capabilities of HTML5 in a special section of its website launched in June. It includes features such as a 360-degree view of the entrance to Apple's iconic Fifth Avenue store in New York City, and an embedded trailer for the upcoming movie "Tron," all viewable without any browser plugins in a browser that supports HTML5, like Safari.
On Topic: iPhone
- Video: Using Apple Pay in-store on an iPhone 6 is quick, convenient, and dead simple
- iPhone 6 demand continues to outstrip supply, may not see balance before 2015
- Apple's iPhone 6 & 6 Plus met with orderly launch day lines in China
- Apple adds PetSmart, Office Depot, others to growing list of retailers who've pledged support for ApplePay
- Apple says iPhone 6 owners can start using ApplePay with release of iOS 8.1 on Monday, Oct. 20