aquto / cordova-plugin-vpn

Other
38 stars 23 forks source link

Example for the APIs #2

Open willpowerforever opened 9 years ago

willpowerforever commented 9 years ago

Hi,

Could you create an example about how to use the API? I am new to the JS technology and trying to figure out how to use it. It will be great if you can provide an example.

Thanks! William

MickdeGraaf commented 9 years ago

I use this code to try to connect but I get an unknown error because I don't know what to fill in in the certificate and certificate password field.


window.plugins.VPNManager.enable(
                                                function(result){
                                                    console.log('connected');
                                                },
                                                function(error){
                                                    console.log(error);
                                                },
                                                {
                                                    "vpnPassword": "password",
                                                    "vpnUsername": "username",
                                                    "vpnHost": "example.vpn.example",
                                                    "certificate": "cert",
                                                    "certificatePassword": "certpass"
                                                }

                                                );  

What do I need to fill in in those fields and do you maybe have a code example?

Thanks,

Mick de Graaf

kevmmdev commented 9 years ago

Good day, yes an example would be great.

jprichardson commented 9 years ago

Would love an example as well :)

Misiu commented 9 years ago

Yes, example of this would be really nice, especially for newbies.

caron7 commented 8 years ago

hello, would you please tell me how to connect a vpn server whitch uses ipsec xauth psk? thanks!

xxxlucaxxx commented 8 years ago

Hi, would you be able to post some example how to establish the VPN connection? Unfortunate, it is very hard to follow up how you are establishing the connection.

Thanks!

MickdeGraaf commented 8 years ago

I don't expect we'll be getting an answer any time soon.

SlavaVolkov commented 8 years ago

Hay everyone guys! Did somebody estabish vpn connection with this plugin?Sorry for my English. I have an error when I build my app with this plugin in NetworkExtension framework: screenshot_2

CELIKEM commented 8 years ago

It's not working so he's not answering any question.

maobonet commented 7 years ago

This plugin only supports ikev2-cert-eap

Khsed4 commented 6 years ago

@willpowerforever @CELIKEM @MickdeGraaf @SlavaVolkov Hey guys, I need to implement a VPN, I was wondering if you solved the problem anyway, I don't care which programming language and which tools just could you please make me inform how I can create an L2TP VPN?

McSam94 commented 5 years ago

Hi guys, any update on this matter? is this library still usable?

akkariyassine commented 5 years ago

did you found a solution ?

redbrain commented 3 years ago

@aquto example usage would be highly appreciated