O'Reilly logo

Learn HTML5 and JavaScript for iOS by Scott Preston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  11

Integrating with Native Services

In Chapter 7 I talked about interacting with GPS and Google Maps. But did you know in addition to GPS you can interact with the Compass, Gyroscope, and the Accelerometer on your iOS device?

What about using your web app to interact with twitter or send a text message?

This chapter tells you how to do this. Although you can't interact with your camera via Mobile Safari, I show you how to do that with a native app in Chapter 15.

Orientation

The orientation API allows you to interact with the Compass, Gyroscope, and Accelerometer on your iOS device through Mobile Safari. This makes it possible to interact with the world around you relative to the direction your device is facing and how it's moving ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required