When you create a new Ionic application, six plugins are automatically installed. This post will take a brief look at them and how they are used within your Ionic app.
What is a Cordova plugin?
If your application is going to run on Android, this plugin is critical if you want to interact with any external resources. The Navigation, Intent and Network Request whitelists are defined within the config.xml file.
This plugin allows you to customize the Android and iOS statusbar. Starting with iOS 7, the webview that would contain our Ionic application would have the statusbar overlaid with the web content. In the default app initialization code, this plugin is called to reset the positioning.
Ionic uses this plugin as part of its platform method. This allows it to resolve the actual device type our application is running on.
To enable better development logging while running on device, this plugin is installed for us. As a reminder, you should remove this plugin before making a production build.
The other plugin used during the app initialization code is the Splashscreen plugin. It is used to hide your splash screen image once the app is ready.
The final pre-installed plugin is the Ionic keyboard plugin. One issue with working with the device’s native keyboard was how the content in the webview responded. This plugin gives you more control in interacting with the keyboard. Notably, the ability to show and hide it programmatically, hide the Accessory Bar and disable scrolling of the content.
As you can see from these brief descriptions, these six plugins provide some of the common interface adjustments almost all Ionic developers would perform on their applications. Now, you should have a better idea of why they are pre-bundled for us.
If you want to learn more about developing Ionic applications, you can get a copy of Mobile App Development with Ionic 2 from your favorite bookseller.