O'Reilly logo

Mobile App Development with Ionic 2, 1st Edition by Chris Griffith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Deploying Your Application

Now with your application fully tested, it is time to create the versions that can be submitted to the various app stores. Before we generate the release build of our app, we should remove any assets that should not be included in our production release.

For example, the Console plugin was added when we first generated our Ionic application, so let’s remove it from our installed plugins. To do this, simply run:

$ ionic plugin remove cordova-plugin-console

We also need to manually delete the reference to this plugin in our config.xml file. Locate this line and delete it:

<plugin name="cordova-plugin-console" spec="~1.0.4"/>

Adjusting the config.xml File

Before generating your production build, you may also need to adjust the config.xml file with some additional settings. By default, the config.xml that is generated by Ionic is fairly bare bones. There are many additional settings you may wish to configure for your application, such as restricting the OS versions your app will run on. Other items within the config.xml that you may want to adjust can include the version number, restricting the domain access list, and replacing development API endpoints with production API endpoints.

For a summary of these settings, see Appendix B or the full documentation at the Cordova website.

App Icons and Splash Screens

If you have not already replaced the stock icons and splash screens that are included when you use the Ionic templates, now would be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required