Skip to content

JoshuvaGeorge03/reachability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ionic Network Reachability

Ionic Network Reachability, it is used for testing network connection.

Ionic Network Reachability

npm install ionic-network-reachability --save

Usage

app.component.ts

import { isReachable } from 'ionic-network-reachability';

export class AppComponent {
    async checkOnline() {
        try {
            const isOnline = isReachable();
            return isOnline;
        } catch(err) {
            
        }
    }
}

About

It will be used to find our the network reachability

Resources

Stars

Watchers

Forks

Packages

No packages published