This is a starter template for Ionic projects.
This template does not work on its own. The shared files for each starter are found in the ionic2-app-base repo.
To use this template, either create a new ionic project using the ionic node.js utility, or copy the files from this repository into the Starter App Base.
Take the name after ionic2-starter-
, and that is the name of the template to be used when using the ionic start
command below:
$ sudo npm install -g ionic cordova
$ ionic start myTutorial tutorial
Then, to run it, cd into myTutorial
and run:
$ ionic cordova platform add ios
$ ionic cordova run ios
Substitute ios for android if not on a Mac.
ionic cordova platform add browser
ionic cordova run browser
# run on device
ionic cordova run android --device
ionic cordova plugin add cordova-plugin-http
ionic cordova build --release android
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
To sign the unsigned APK, run the jarsigner
tool which is also included in the JDK:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
ionic cordova run <ios or android> --device -l --debug
- For Android open Chrome and go to
Web Inspector
.Open ~ โ > More tools > Remote devices
Select your device and click Inspect. - For iOS open Safari and enable
Develop Menu
.Open ~ Develop > my device > my ip address
.