Build an Ionic Project
Fix Popular Issues
If an error occurs while adding the platform, follow these steps:
npm cache clean --force
And If you are a windows user, try deleting all files in this folder:
C:\Users\{{your-username}}\AppData\Roaming\npm-cacheAnd delete all the platforms that have been added in this folder:
/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app/platforms
ionic cordova platform remove android
Then run this command:
npm cache verify
After that run the command below
Build an Ionic Project
Connect your internet, then run
Node.js command promptor usingterminal/bashGo to your ionic project folder:
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Add platform to your ionic project
Android Platform
ionic cordova platform add android@latest
or for ios platform:
Your computer does not support iOS Platform, please use Mac OSX
ionic cordova platform add ios@latest
It is recommended to upgrade the cordova-ios platform to version 5.1.1 or latest
or for browser platform
ionic cordova platform add browser@latest
Change all file and folder permissions to read, write, and execute
chmod -R 777chmod -R 777 /home/ihsanane/public_html/imabuilder3/demo/outputs/*
Then build your ionic project
ionic cordova build android
or
ionic cordova build ios
Then open file browser (Windows Explorer for Windows or Finder for OSX)
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Create APK File to publish on self-hosting or other
Please! make sure the keytool, jarsigner and zipalign are set up the path/environment variables in Windows
Tools Software Example PATH keytool JDK8 or latest C:\Program Files\Android\Android Studio\jre\bin jarsigner JDK8 or latest C:\Program Files\Android\Android Studio\jre\bin zipalign AndroidSDK C:\androidsdk\build-tools\33.0.0
Connect your internet, then run
Node.js command promptor usingterminal/bashGo to your ionic project folder:
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Build your project
ionic cordova build android --prod --release -- -- --packageType=apk
Let's generate our private key using the keytool command that comes with the JDK, For app already exist in playstore, you can use old key file rename to:
ima-quote-app.keystorekeytool -genkey -v -keystore "ima-quote-app.keystore" -alias ima_quote_app -keyalg RSA -keysize 2048 -validity 10000
Copying and rename APK filename
cp "platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk" "platforms/android/app/build/outputs/apk/release/app-for-signed.apk"
To sign the unsigned APK, run the jarsigner tool which is also included in the JDK
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore "ima-quote-app.keystore" "platforms/android/app/build/outputs/apk/release/app-for-signed.apk" ima_quote_app
we need to run the zip align tool to optimize the APK
zipalign -v 4 "platforms/android/app/build/outputs/apk/release/app-for-signed.apk" "platforms/android/app/build/outputs/apk/release/app-release-signed.apk"
Then open filebrowser, use
app-release-signed.apkfor productioncd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Create AAB File (Android App Bundle) to publish on Google Play Store
Please! make sure the keytool, jarsigner and zipalign are set up the path/environment variables in Windows
Tools Software Example PATH keytool JDK8 or latest C:\Program Files\Android\Android Studio\jre\bin jarsigner JDK8 or latest C:\Program Files\Android\Android Studio\jre\bin zipalign AndroidSDK C:\androidsdk\build-tools\33.0.0
Connect your internet, then run
Node.js command promptor usingterminal/bashGo to your ionic project folder:
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Build your ionic project
ionic cordova build android --prod --release -- -- --packageType=bundle
Let's generate our private key using the keytool command that comes with the JDK, For app already exist in playstore, you can use old key file rename to:
ima-quote-app.keystorekeytool -genkey -v -keystore "ima-quote-app.keystore" -alias ima_quote_app -keyalg RSA -keysize 2048 -validity 10000
To sign the unsigned Android App bundle (.aab), run the jarsigner tool which is also included in the JDK
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore "ima-quote-app.keystore" "platforms/android/app/build/outputs/bundle/release/app-release.aab" ima_quote_app
Then open file browser (window explorer or finder), use
app-release.aabfor productioncd "platforms\android\app\build\outputs\bundle\release\"
Create AAB File to update the app on Google Play Store
Prepare your updates:
- The package name of the updated APK or app bundle needs to be the same as the current version
(current: com.imabuilder.v3.ihsanaitsolution.imaquoteapp)- The version code needs to be greater than the current version. Learn more about versioning your app
(current: 010101)- The updated APK or app bundle needs to be signed with the same signature as the current version
(keystore: ima-quote-app.keystore)
Go to the Apps -» Edit, then edit the App Version, the version code needs to be greater than the app version on Google Play Store
Copy ima-quote-app.keystore to the root of the ionic project folder (current: /home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app)
Connect your internet, then run
Node.js command promptor usingterminal/bashGo to your ionic project folder:
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Build your ionic project
ionic cordova build android --prod --release -- -- --packageType=bundle
To sign the unsigned Android App bundle (.aab), run the jarsigner tool which is also included in the JDK
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore "ima-quote-app.keystore" "platforms/android/app/build/outputs/bundle/release/app-release.aab" ima_quote_app
Then open file browser (window explorer or finder), use
app-release.aabfor productioncd "platforms\android\app\build\outputs\bundle\release\"
Official Instructions
Showcase Your App
App Name
Description
PlayStore URL (Android)
AppStore URL (IOs)
Self-Publishing (APK Link)
If you are publishing on your own hosting, please fill in the fields above.
How to build PWAs (Progressive Web Apps)
Required to use a hosting that has domain/subdomain or ROOT folder
Go to your ionic project folder:
cd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"
Build your ionic project
ionic build
or
ionic build --prod
REFRESH this page twice to make the configuration run automatically
Login to your server or cPanel and create a subdomain, must use a domain or subdomain (ROOT folder).
Then upload all files in the folder:
/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app/wwwcd "/home/ihsanane/public_html/imabuilder3/demo/outputs/ima-quote-app"