Building App on device

Learn how to build the app on device and how to deploy it on a Firebase based hosting in quick steps

Build the app for Android

Once you have modified your app as per your requirements, you can start building the app for Android.

circle-info

You need to have all pre-requisites before you can build the app on a device. Check the pre-requisites for developmentarrow-up-right and productionarrow-up-right

Add an android platform to the project by running

$ ionic cordova platform add android

This step will add an android platform to the project.

circle-info

Previous step will require Android Studioarrow-up-right installed on your system. You can also install Android SDK without Android Studio, but that is not the recommended way.

Now prepare the platform for a build

$ ionic cordova prepare android

And run the app on your device or simulator by running

$ ionic cordova run android
circle-info

Build the app for iOS

An iOS app can be built only on an Apple based system. Add an iOS platform to the project by running.

$ ionic cordova platform add iOS

This step will add an iOS platform to the project.

circle-info

Previous step will require Xcodearrow-up-right installed on your system. You will also need an Apple developer license and proper provisioning profiles to build the app on device.

Now prepare the platform for a build

And run the app on your device or simulator by running

OR, run the app using XCode directly.

circle-info

Last updated

Was this helpful?