Skip to content

Simple plugin that allows to detect VPN connection on device

Notifications You must be signed in to change notification settings

androidovshchik/cordova-detect-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-detect-vpn plugin

Simple plugin that allows to detect VPN connection on device

Getting started

Create a new Cordova Project

$ cordova create example com.example Example

Install the plugin

$ cd example
$ cordova plugin add https://github.com/androidovshchik/cordova-detect-vpn.git

Edit www/js/index.js and add the following code inside onDeviceReady

DetectVPN.isEnabled(function(result) {
    if (result) {
        // there was found VPN connection
    }
});

Install Android platform

cordova platform add android

Run the app

cordova run android

About

Simple plugin that allows to detect VPN connection on device

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published