Accessing Mobile Device Features



The Profound UI Mobile Client provides many JavaScript APIs for accessing functionality specific to mobile devices, such as accessing the camera, scanning a barcode, and vibrating the phone. These services are made available by the many Cordova plugins included with the mobile client. The use of these plugins can sometimes be complicated, so in some cases Profound UI provides simple wrappers around them; for example, `pui.capturePhoto()` simplifies and extends Cordova's `camera.getPicture` function.

You may never need to directly use the functionality provided by these plugins, but listed below are all the Cordova plugins included with the mobile client.



Plugin

Description

Status

Plugin

Description

Status

cordova-plugin-battery-status

Get events for device battery level



cordova-plugin-camera

Take pictures with the device camera



cordova-plugin-contacts

Manage the contacts on the device



cordova-plugin-device

Get device information (e.g., model and platform)



cordova-plugin-device-motion

Access accelerometer data

Deprecated, but still included for legacy apps

cordova-plugin-device-orientation

Access compass data

Deprecated, but still included for legacy apps

cordova-plugin-dialogs

Use native alert and dialog boxes



cordova-plugin-file

Read/write files on the device



cordova-plugin-file-transfer

Uploads and downloads files

Deprecated, but still included for legacy apps

cordova-plugin-geolocation

Access GPS data



cordova-plugin-globalization

Access locale data

Deprecated, but still included for legacy apps

cordova-plugin-inappbrowser

Open an in-app browser window



cordova-plugin-media

Record and play audio on the device



cordova-plugin-media-capture

Capture audio, video, and images



cordova-plugin-nativestorage

Provides a more persistent version of local storage



cordova-plugin-network-information

Get information about wireless connectivity



cordova-plugin-screen-orientation

Set the screen orientation



cordova-plugin-splashscreen

Control the splash screen for your app

Used internally by the Profound UI mobile client; not for customer use

cordova-plugin-statusbar

Provides functions to customize the iOS and Android status bar



cordova-plugin-vibration

Vibrate the device

Android support is deprecated

cordova-plugin-whitelist

Whitelist external content accessible by an Android Cordova app

Used internally by the Profound UI mobile client; not for customer use

cordova-sms-plugin

Send SMS messages



cordova-sqlite-storage

Provides an on-device SQLite database

Available with mobile client 2.9.3 and higher

phonegap-plugin-barcodescanner

Scan and create barcodes