Module 8: Building the Application

This module is optional. To build the application for iOS and/or Android, you need the iOS SDK and/or the Android SDK installed on your system.

Add the InAppBrowser plugin

The InAppBrowser plugin is used in Module 9 to support Facebook login when running in Cordova.

  1. On the command line, navigate to the ionic-tutorial/conference directory

  2. Add the InAppBrowser plugin

    cordova plugins add org.apache.cordova.inappbrowser
    

Building for iOS

You need the iOS SDK installed on your computer to build an iOS version of your application using the steps below.

  1. On the command line, make sure you are in the ionic-tutorial/conference directory

  2. Add support for the iOS platform:

    ionic platform add ios
    
  3. Build the project:

    ionic build ios
    
  4. Open conference.xcodeproj in the conference/platforms/ios directory

  5. In Xcode, run the application on a device connected to your computer or in the iOS emulator

Building for Android

You need the Android SDK installed on your computer to build an Android version of your application using the steps below.

  1. Make sure the Android SDK and the ant build tool are available on your system. The Android SDK is available here. Both the android and ant tools must be available in your path. To test your configuration, you should be able to execute both android and ant from the command line.

  2. On the command line, make sure you are in the ionic-tutorial/conference directory

  3. Add support for the Android platform:

    ionic platform add android
    
  4. Build the project:

    ionic build android
    

    The project is built in the conference/platforms/android folder

  5. To build and run the application on an Android device connected to your computer using a USB cable:

    ionic run android
    
  6. To build and run the application in the Android emulator:

    ionic emulate android