Ionic platforms
To add ionic platforms using the below commands.
$ ionic cordova platform add android
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.
$ ionic cordova prepare android
Build your ionic application using the below commands.
$ ionic cordova build android
Run your ionic application using the below commands.
$ ionic cordova run android
Last updated