We are looking for cordova vpn plugin for ionic


#1

Hi any one suggest cordova vpn plugin for multiple platforms.


#2

Which ones did you already try?
What were the problems with them?


#3

i tried cordova-plugin-vpn , plugin adding time i am getting this error

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Variable(s) missing (use: --variable ALLOWWIFI=value).


#4

while installing the plugin add the line at the end

–ALLOWWIFI=TRUE( or if you don’t want then FALSE )


#5

I added but getting same error
cordova plugin add cordova-plugin-vpn --variable ALLOWIFI=TRUE

Thank you for respond


#6

I guess it is expecting a Boolean, try with true in lowercase…


#7

ya right it will work if we change plugin name

cordova plugin add cordova-plugin-vpn --variable allowWiFi=true

Thank you for your help