Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/androidovshchik/cordova-detect-vpn
- Owner: androidovshchik
- Created: 2020-12-04T08:28:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T11:18:37.000Z (about 4 years ago)
- Last Synced: 2024-11-17T23:23:57.711Z (2 months ago)
- Topics: android, cordova, detect, vpn
- Language: Java
- Homepage:
- Size: 132 KB
- Stars: 1
- Watchers: 2
- 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 appcordova run android