Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ikishanoza/0edae5e0710610e3b05df135d9ed0425 to your computer and use it in GitHub Desktop.
Save ikishanoza/0edae5e0710610e3b05df135d9ed0425 to your computer and use it in GitHub Desktop.
A basic required commands used in the ionic application.
install ionic cordova -g ---> Installing ionic cli in global
ionic start <projectname> <templatename> ---> To create the ionic project
ionic serve - to run the application in the browser.
ionic lab - to run the application in browser window with 3 platform screens.
ionic cordova platform add android or ios ---> to setup the platform
ionic cordova resources ---> creates the icon and splash images of different sizes of our images and splash paste in the resources folder.
ionic cordova run android ---> to run the application on the Androis SDK device.
ionic cordova run android -l ---> this cmd enables the live reload of the application.
ionic generate component, directive, page, pipe, provider, tabs ---> used to generate any of the mention, use only one at a time.
ionic plugin add <pluginname> - used to add any plugins in the project.
ionic login ---> used to connect our ionic account
ionic link ---> to link our project to the app in the ionic cloud app.
ionic cordova platform add browser
ionic cordova run browser
Custom Icon and Splash Screen:
Ref: https://angularfirebase.com/lessons/generate-a-custom-spash-screen-and-icons-in-ionic/
1. Delete icon and splash files in the resourses folder.
2. app icon should be 1024x1024px and splash img should be 2732x2732px.
3. paste the two files into the resources folder and run "ionic cordova resources", this will generate the dynamic files.
4. update the config.xml file as below
<!-- omitted -->
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashScreenDelay" value="10000" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="FadeSplashScreen" value="true" />
<preference name="ShowSplashScreen" value="true" />
----- Ionic Speech Recognition
$ cordova plugin add cordova-plugin-speechrecognition --save
$ npm install --save @ionic-native/speech-recognition
#Reference 1: https://ionicframework.com/docs/native/speech-recognition/
#Reference 2: https://www.npmjs.com/package/@ionic-native/speech-recognition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment