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: about 1 year ago
JSON representation
Simple plugin that allows to detect VPN connection on device
- Host: GitHub
- URL: https://github.com/androidovshchik/cordova-detect-vpn
- Owner: androidovshchik
- Created: 2020-12-04T08:28:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T11:18:37.000Z (over 5 years ago)
- Last Synced: 2025-06-15T10:06:06.789Z (about 1 year ago)
- Topics: android, cordova, detect, vpn
- Language: Java
- Homepage:
- Size: 132 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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