Install Ionic
npm install -g cordova ionic
First, install Node.js. Then, install the latest Cordova and Ionic command-line tools in your terminal. Follow the Android and iOS platform guides to install required tools for development.
If you’re new to the command line, read our Terminal tutorial
Start an App
ionic start myApp tabs
Create an Ionic App using one of our ready-made app templates, or a blank one to start fresh. Check out the Market for more designs.
For v1 projects, use the --type ionic1 flag.
o$ ionic start myApp blank
o$ ionic start myApp tabs
o$ ionic start myApp sidemenu
Run your App
cd myApp
ionic serve
Much of your app can be built right in the browser with ionic serve. We recommend starting with this workflow.
When you're ready to deploy your app to a real device, check out ourDeploying guide.
Ionic generate page page1
$ ionic generate
$ ionic generate component
$ ionic generate directive
$ ionic generate page
$ ionic generate pipe
$ ionic generate provider
$ ionic generate tabs
$ ionic generate component foo
$ ionic generate page Login
$ ionic generate page Detail --no-module
$ ionic generate page About --constants
$ ionic generate pipe MyFilterPipe
Ionic info
Social sharing
$ ionic cordova plugin add cordova-plugin-x-socialsharing
$ npm install --save @ionic-native/social-sharing
If you upgrade to Node 8 on macOS and have an existing project, you will get the following error: sass
You need to run the following:
npm rebuild node-sass
Add mod
# Add the Cordova plugin
ionic cordova plugin add cordova-plugin-admob-free
# Add the Ionic Native types for pro (--save for < npm@5)
npm install @ionic-native/admob –save
npm install --save @ionic-native/admob-free
build and apk
ionic platform add android
ionic cordova build --release android
C:\Program Files\Java\jre1.8.0_161\bin
keytool -genkey -v -keystore d:\my_private_key.keystore -alias my_key_alias -keyalg RSA -keysize 2048 -validity 10000
password:sireesh
C:\Program Files\Java\jdk1.8.0_161\bin
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore D:\my_private_key.keystore D:\project\kansiris\vinayaka\vinayaka\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk my_key_alias
jarsigner -verify D:\project\kansiris\vinayaka\vinayaka\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk
C:\Users\kansiris\AppData\Local\Android\Sdk\build-tools\26.0.2
zipalign -v 4 D:\project\kansiris\vinayaka\vinayaka\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk D:\project\kansiris\vinayaka\vinayaka\platforms\android\app\build\outputs\apk\release\app-release.apk
Google play store already having app published with bundle io.ionic.starter
you can go to your config.xml and change your bundle id like:
<widget id="com.test.myapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
here com.test.myapp is your app's bundle id. than rebuild release signed apk and zipalign. and try to upload again.
<p>
If you get lost, the <a href="http://ionicframework.com/docs/v2">docs</a> will show you the way.
</p>
<button ion-button secondary menuToggle>Toggle Menu</button>
<button(click)="onloadpage1()">button1</button>
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.