https://bit.ly/ion2fullapp-elite-version-documentation
##Config You need to replace all values from src/environment/environment.ts with your own values.
##To run your app in the browser (great for initial development):
-
Install all the npm dependencies
npm install
-
Serve the app in your browser
ionic serve
##To run on iOS:
- Add cordova platform
ionic cordova platform add ios
orcordova platform add ios
** NOTE: ** If you add the platform using the ionic command, then you may experience that nothing is happening for a while (you will just see 'Running command' in your terminal). In the other hand if you add the platform directly with cordova you will be getting verbose updates on what's doing in the background
- Run it (on your device if connected or in the emulator)
ionic cordova run ios --prod
** NOTE: ** We include the --prod
flag to force Angular Ahead of Time compilation for the app
##To run on Android:
- Add cordova platform
ionic cordova platform add android
orcordova platform add android
** NOTE: ** If you add the platform using the ionic command, then you may experience that nothing is happening for a while (you will just see 'Running command' in your terminal). In the other hand if you add the platform directly with cordova you will be getting verbose updates on what's doing in the background
- Run it (on your device if connected or in the emulator)
ionic cordova run android --prod
** NOTE: ** We include the --prod
flag to force Angular Ahead of Time compilation for the app
##Review ionic CHANGELOG when updating ionic-angular version https://github.com/driftyco/ionic/blob/master/CHANGELOG.md
cordova platform save
Use it when you have a pre-existing project and you want to save all the currently added platforms in your project.
ionic state reset
This will remove everything then bring back what you have specified in the package.json file.
ionic state save
To store the current platforms and plugins to the package.json
ionic state restore
This will add in the appropriate plugins and platforms from the package.json
Sign this app jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name zipalign -v 4 app-release-unsigned.apk android.apk
ionic cordova build android --prod --release -- -- --keystore=my-release-key.keystore --alias=alias_name