Book Image

Ionic Cookbook

By : Hoc Phan
Book Image

Ionic Cookbook

By: Hoc Phan

Overview of this book

Table of Contents (18 chapters)
Ionic Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building and publishing an app for Android


Building and publishing an Android app is a little more straightforward than iOS because you just interface with the command line to build an .apk file and upload it to Google Play Developer Console. The Ionic Framework documentation also has a great instruction page for this, which can be viewed by visiting http://ionicframework.com/docs/guide/publishing.html.

Getting ready

The requirement is to have your Google Developer account ready and log in to https://play.google.com/apps/publish. Your local environment should also have the right SDK as well as the keytool, jarsigner, and zipalign command line for that specific version.

How to do it...

Here are the instructions to build and publish an app for Android:

  1. Go to your app folder and build the release for Android:

    $ ionic build --release android
    
  2. You will see android-release-unsigned.apk in the apk folder under /platforms/android/build/outputs. Go to this folder in the Terminal:

  3. If you're creating this...