Building App on device
Learn how to build the app on iOS and/or Android device

Build the app for Android

Once you have modified your app as per your requirements, you can start building the app for Android. Add an android platform to the project by running
1
$ ionic cordova platform add android
Copied!
This step will add an android platform to the project.
Previous step will require Android Studio preinstalled 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
1
$ ionic cordova prepare android
Copied!
And run the app on your device or simulator by running
1
$ ionic cordova run android
Copied!
More information in ionic documentation

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
1
$ ionic cordova platform add iOS
Copied!
This step will add an iOS platform to the project.
Previous step will require Xcode preinstalled 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
1
$ ionic cordova prepare ios
Copied!
And run the app on your device or simulator by running
1
$ ionic cordova run ios
Copied!
OR, run the app using XCode directly.
More information in ionic documentation
Last modified 1yr ago