Connect to VPN from app

Hi All,

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

Thanks

1 Like

Hi @ankushagg93, did you get solution for this?

Nope. I think it’s not possible.

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

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.

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

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.

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=