Summary
This chapter showed you how to activate several desirable features of iPhone or iPod Touch devices from within your JavaScript application. Using features such as GPS location, the accelerometer values, vibrating the phone, and playing sounds and audio increase the richness of your application.
By looking at the examples included in the DeviceCatalog and if you work in Objective-C, you should be able to add additional features such as scanning the Bonjour network for nearby devices, adding, removing, and retrieving contacts from the contacts application, or adding, removing, and retrieving other built in behaviors that are available in Objective-C applications.
Your JavaScript application can, using the approach described in this chapter, do most anything a pure Objective-C application can do. An example of this is in Chapter 8, where you learn how to embed Google maps into any application without losing the look and feel of Apple's Map application.