Connect to VPN from app


#1

Hi All,

Is there any plugin which can open vpn connection from ionic app?

Thanks


#2

Hi @ankushagg93, did you get solution for this?


#3

Nope. I think it’s not possible.


#4

For Android these exist:
https://github.com/aquto/cordova-plugin-vpn
https://github.com/uProxy/cordova-plugin-tun2socks


#5

Hi Sujan,

Have you tried adding those plugins into any app.I have come across one common error while adding those plugins into a TestApp?

Thanks in advance.


#6

No. You will have to find out yourself if those work or not.


#7

i added those two. but plugins are not installed getting error UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Variable(s) missing (use: --variable ALLOWWIFI=value)

what is ALLOWWIFI value.


#8

No idea. From the looks of it, an error message because one of the plugins you have installed should have gotten this variable. The first plugin contains it in its code, so probably this one: https://github.com/aquto/cordova-plugin-vpn/search?utf8=✓&q=ALLOWWIFI&type=