Before proceeding with the steps in device management, you need to install the following plug-ins:
Note:
- You must have access to the internet.
- In the Terminal on MAC, type the respective command for each of the plug-ins provided in the table within the project directory to install them. The plug-ins will get installed in your project from the Cordova site.
Plug-in |
Purpose |
Command to Install the plug-in |
App Version Plugin |
Gets the app related details such as version, name, ID etc. |
cordova plugin add cordova-plugin-app-version |
Geolocation |
Gets the GPS location of the device. |
cordova plugin add cordova-plugin-geolocation |
Device Details |
Gets the device details such as manufacturer, platform, resolution, model etc. |
cordova plugin add cordova-plugin-device |
Push notification |
Generates the push token if the app is registered for push notification. |
cordova plugin add cordova-plugin-firebase |
Unique device ID |
Gets the device ID only. |
cordova plugin add cordova-plugin-uniquedeviceid |