Commonly used Cordova plugins
Whenever you start a new Ionic project and add a platform to it, you can see that there are some plugins that are installed by default. Ionic installs the following mentioned plugins when you add Android or iOS platforms:
- ionic-plugin-keyboard
- cordova-plugin-console
- cordova-plugin-device
- cordova-plugin-splashscreen
- cordova-plugin-whitelist
- cordova-plugin-statusbar
Let's get started with the previously mentioned plugins and see what they are used for.
Device plugin
Device plugin is really helpful in getting all the device related hardware and software information. Device objects are available in global scope, but only after the device is ready.
Ionic Native supports this plugin with devices and it has six static members to access data:
Device
: Returns Object with Cordova, model, platform, UUID, and version, for example,Device.uuid
cordova
: Returns string with specific Cordova versionsModel
: Returns string with the device's model nameplatform
: Returns string with the operating...