Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with Ionic
  • Table Of Contents Toc
Getting Started with Ionic

Getting Started with Ionic

By : Rahat Khanna
5 (1)
close
close
Getting Started with Ionic

Getting Started with Ionic

5 (1)
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 (11 chapters)
close
close
10
Index

Network


The network device plugin helps in identifying the network on which the device is connected and listening to network change events. The $cordovaNetwork is a service of the ngCordova module, which exposes multiple methods and events for managing the network.

The command line to be executed using the Ionic/Cordova CLI is:

cordova plugin add cordova-plugin-network-information

The methods available under this service are:

  • Method Name: getNetwork()

    • Returns: The Connection object (this property determines the connection state and connection type)

      The possible connection types can be:

      Type

      Description

      Connection.UNKNOWN

      Unknown connection

      Connection.ETHERNET

      Ethernet connection

      Connection.WIFI

      Wi-Fi connection

      Connection.CELL_2G

      Cell 2G connection

      Connection.CELL_2G

      Cell 3G connection

      Connection.CELL_2G

      Cell 4G connection

      Connection.CELL

      Cell generic connection

      Connection.NONE

      No network connection

  • Method Name: isOnline()

    • Returns: Boolean (true if network is online)

  • Method...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Getting Started with Ionic
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon