Header Ads

Network Information in ionic 3

Network Information in ionic 3

This plugin provides an implementation of the Network Information API. This provides the Information about the cellular devices and wifi connection, it will give information whether the device has an internet connection.



Installation

Use the Cordova network plugin to get information, whether the mobile connected with the internet connection.

              ionic cordova plugin add cordova-plugin-network-information
         
              npm install --save @ionic-native/network

Step-1

Import the network plugin in own page module and use it on the page. when importing a network plugin own page module, it will reduce lazy loading in the app.



step-2

Then import plugin in ts file, and listed the information about the internet.



Post a Comment

0 Comments