16. Device

The PhoneGap Device object allows an application to access a limited amount of information about the application and device running a PhoneGap application. The device object represents the following properties:

device.name: Returns the name assigned to the device; this could be something assigned by the device manufacturer or assigned by the smartphone user depending on the mobile device platform.

device.phonegap: Returns the version of the PhoneGap framework used to build the application.

device.platform: On most platforms, returns the name of the mobile device platform the application is running on. Exceptions will be discussed later in the chapter.

device.uuid: Returns the universally unique identifier (UUID) associated ...

Get PhoneGap Essentials: Building Cross-Platform Mobile Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.