O'Reilly logo

PhoneGap Essentials by Ivan Turkovic

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

Essential plugins

Since, in the latest PhoneGap version, no plugins are added by default, it was decided to keep the app builds as small and lightweight as possible. We are free to enhance the app based on our needs, but this could be challenging for beginners as there are so many plugins it is hard to decide which ones to start with. I have selected a few that, in my opinion, are essential and should be included in the core. So let's go over them and see what capabilities they enable.

The Device plugin

The Device plugin defines a global device object that describes the device's hardware and software information. The Device plugin is available only after the deviceready event has been used.

phonegap plugin add cordova-plugin-device

After installing ...

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