Book Image

Getting Started with Ionic

By : Rahat Khanna
Book Image

Getting Started with Ionic

By: Rahat Khanna

Overview of this book

Hybrid Apps are a promising choice in mobile app development to achieve cost effectiveness and rapid development. However, they were not preferred over native apps until few years back due to a poor performance and bad user experience, but everything has changed with the release of Ionic. It has evolved as the most popular choice for Hybrid Mobile App development as it tends to match the native experience and provides robust components/tools to build apps. Getting Started with Ionic equips any web developer with the basic knowledge needed to use modern web technologies to build amazing hybrid mobile apps using Ionic. This fast-paced, practical book explains all the important concepts of AngularJS and Cordova Framework required to develop apps, then gives you a brief introduction to hybrid mobile applications. It will guide you through setting up the environment to develop mobile apps, and through the multiple options and features available in Ionic so you can use them in your mobile apps. Features such as the Side Menu, Tabs, Touch Interactions, and native features such as Bar Code, Camera, and Geolocations are all covered.. Finally, we’ll show you how to use Cordova plugins and publish your apps.
Table of Contents (17 chapters)
Getting Started with Ionic
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Making debug build


While we can use the Ionic view app to see the output of our app and share the app with others to get feedback, but we cannot debug errors during the development on the actual app using this method.

We have to approach testing on actual devices by connecting our devices to development machines using USB and deploying debug builds to enable debugging. The process for making debug builds and running them on iOS and Android are different. We will discuss the method for both in this section.

Android debug build

In Android, the most basic step is to enable USB debugging in your Android device. The detailed steps are:

  1. Enable the developer mode by going to Settings | About Phone | Build number | Tap 7 times to become developer.

  2. After entering the developer mode you have to go to Settings | Developer Options | USB Debugging.

  3. Now, you should connect your device to the development machine.

  4. A dialog will appear on your device to allow the specific RSA key—Please press the Ok button. If...