Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/androidovshchik/cordova-detect-vpn

Simple plugin that allows to detect VPN connection on device
https://github.com/androidovshchik/cordova-detect-vpn

android cordova detect vpn

Last synced: 9 days ago
JSON representation

Simple plugin that allows to detect VPN connection on device

Awesome Lists containing this project

README

        

# 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`

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

Install Android platform

cordova platform add android

Run the app

cordova run android