Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to validate if the plugin is working fine for me? #27

Open
lakshaydulani opened this issue Jan 3, 2017 · 2 comments
Open

How to validate if the plugin is working fine for me? #27

lakshaydulani opened this issue Jan 3, 2017 · 2 comments

Comments

@lakshaydulani
Copy link

So sorry to create an issue for this. But how are your guys validating that the plugin is working fine for you?

@dcz-switcher
Copy link

dcz-switcher commented Jan 29, 2017

Hello, don't know if you have the same issue than me, but this plugin doesn't work for me

I just create new Cordova project,
add android and ios platforms,
then add this code but the response is in error and alway the same error with all APIs I tried :-(

try{
            window.cordovaHTTP.enableSSLPinning(
                true, 
                function (msg) {
                    console.log("DEBUG", "you can now talk only to trusted endpoints");
                    try{
                        window.cordovaHTTP.get(
                            'https://github.com/',
                            {}, // optional params
                            {}, // optional headers
                            function(msg) {
                                console.log("DEBUG", msg)
                            },
                            function(msg) {
                                console.log("ERROR", msg)
                            }
                        );
                    }catch(e){
                        console.log("CATCH", e)
                        console.log(e)
                    }
                },
                function (msg) {
                    console.log("ERROR", msg)
                }
            );
        } catch(e) {
            console.log('CATCH', e);
            console.log(e);
        }

Always the same response

DEBUG you can now talk only to trusted endpoints

{status: 500, error: "There was an error with the request"}

Nothing in logcat to help me debug this ... :-(

@angegar
Copy link

angegar commented Mar 7, 2017

Hello, i rewrite a part of the plugin for Android as it did not work for me. You can grab it from my fork.

PS : i submitted a pull request on December but it is seems that the author is no longer active on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants