M
M
Mobile app
Search…
Ionic platforms
To add ionic platforms using the below commands.
Android
iOS
$ ionic cordova platform add android
$ ionic cordova platform add ios
  • After added the android platform update your android manifest file [platforms/android/app/src/main/AndroidManifest.xml]
From
<application
android:hardwareAccelerated="true"
android:icon="@mipmap/icon"
android:label="@string/app_name"
android:supportsRtl="true">
To
<application
android:hardwareAccelerated="true"
android:icon="@mipmap/icon"
android:label="@string/app_name"
android:supportsRtl="true"
android:usesCleartextTraffic="true">
Prepare your ionic application using the below commands.
Android
iOS
$ ionic cordova prepare android
$ ionic cordova prepare ios
Build your ionic application using the below commands.
Android
iOS
$ ionic cordova build android
$ ionic cordova build ios
Run your ionic application using the below commands.
Android
iOS
$ ionic cordova run android
$ ionic cordova run ios
Copy link