Angular + Ionic + Cordova
App ID: edu.uab.path.ualcan
Hybrid mobile application built using Angular, Ionic, and Apache Cordova.
Runs on:
- Browser (development testing)
- Android devices/emulators
- iOS devices/simulators (macOS only)
The Angular application builds the web UI, and Cordova packages it into native mobile applications.
In this repo, Angular builds directly to Cordova's www/ folder.
Angular source
↓
ng build
↓
www/ (Cordova web assets)
↓
cordova run android / ios / browser
Important: Run npm run build before any cordova run ... so you
package the latest web assets.
- Angular:
^21.2.0 - Ionic Angular:
^8.7.18 - TypeScript:
^5.9.3 - Cordova platforms:
cordova-android:^14.0.1cordova-ios:^8.0.0cordova-browser:^7.0.0
Android: - android-minSdkVersion: 24 -
android-targetSdkVersion: 35
Install the Node.js LTS version.
Verify:
node -v
npm -vnpm install -g @angular/cli
ng versionnpm install -g cordova
cordova -vAndroid builds require Android Studio, the Android SDK, and a Java JDK.
Install Android Studio.
In Android Studio → SDK Manager, install:
- Android SDK Platform API 35
- Android SDK Build-Tools
- Android SDK Platform-Tools (includes
adb)
Install JDK.
Set:
JAVA_HOME= path to your JDKANDROID_SDK_ROOT= path to your Android SDK (orANDROID_HOME)
Add to PATH: - $JAVA_HOME/BIN
Verify Java:
java -version
javac -versionAdd to PATH: - $ANDROID_SDK_ROOT/platform-tools (so adb works)
Verify ADB:
adb devicesYou generally do not install Gradle manually.
Cordova Android uses the Gradle wrapper inside: -
platforms/android/gradlew
The wrapper downloads the required Gradle version automatically during build.
Install Xcode from the App Store.
Install command line tools:
xcode-select --installAccept license:
sudo xcodebuild -license acceptInstall CocoaPods (commonly required):
sudo gem install cocoapods
pod --versionFrom the project root:
npm installnpm run buildWatch mode (rebuild on changes):
npm run watchcordova platform add browser
cordova platform add androidmacOS only:
cordova platform add iosBrowser:
cordova run browserAndroid:
cordova run android
cordova run android --device
cordova run android --emulatoriOS (macOS only):
cordova run ios
cordova run ios --emulatorIf builds get out of sync:
rm -rf platforms plugins node_modules
npm install
cordova platform add browser
cordova platform add android
# macOS only:
cordova platform add ios
npm run build
cordova run browserRebuild Angular (to www/) then rerun:
npm run build
cordova run android- Confirm API 35 installed in SDK Manager
- Confirm
JAVA_HOMEandANDROID_SDK_ROOTare correct - Confirm
adb devicesshows your device/emulator
Ensure:
- Confirm Xcode command line tools installed\
- Confirm Xcode license accepted
Open the project inside:
platforms/ios
and build directly in Xcode to inspect the detailed error



