Chapter 7. Accessing Device Sensors
The use of device sensors opens the doors to sophisticated apps, able to improve user experience and to enhance the capabilities of a modern app. It's very important for a mobile developer to understand the power and limitations of device sensors to effectively use the APIs provided by the PhoneGap framework.
In this chapter you will:
- Learn which are the most common device sensors and how to use them in order to enhance the user experience
- Get an overview of the device orientation and device motion events using the accelerometer
- Learn how to use the Compass API of PhoneGap
- Understand how to access the device compass data and use the available information ...