Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Ionic
  • Toc
  • feedback
Learning Ionic

Learning Ionic

By : Ravulavaru
4.4 (14)
close
Learning Ionic

Learning Ionic

4.4 (14)
By: Ravulavaru

Overview of this book

This book is intended for those who want to learn how to build hybrid mobile applications using Ionic. It is also ideal for people who want to explore theming for Ionic apps. Prior knowledge of AngularJS is essential to complete this book successfully.
Table of Contents (12 chapters)
close
11
Index

Testing the application


Now that we are done with building the application, we will add the iOS and Android platforms, to test the application. Run this:

ionic platform add ios
ionic platform add android

Next, we will emulate/run the app. I have a Samsung Galaxy Note 3 mobile as one device and an iOS emulator as another device.

I have tested the app by running it on the Android device and emulating it on the iOS emulator. You can do so the same way or you can use an Android emulator and an iOS emulator for test purposes as well. To launch/emulate the application, run this:

ionic run android –l –c

You can also use this:

ionic emulate ios –l –c

Note

The –l flag sets up the live reload option when emulating/running on an emulator/device and the –c flag enables JavaScript console logs to be printed in a command prompt/terminal. These are the two of the most helpful flags while debugging Ionic apps on emulators/devices.

Once the app is launched in both the devices, you should see the main page of...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete