Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Reset Password throws error #13

Open
mc13an opened this issue Jun 5, 2018 · 3 comments
Open

Reset Password throws error #13

mc13an opened this issue Jun 5, 2018 · 3 comments

Comments

@mc13an
Copy link

mc13an commented Jun 5, 2018

If you select Reset Password after you select your bank the web view thows:

screen shot 2018-06-05 at 10 12 17 am

@ghost
Copy link

ghost commented Jun 21, 2018

I have the same problem.

@ghost
Copy link

ghost commented Jun 21, 2018

I am find one solution:

<PlaidAuth
    onMessage={ scope.onMessage }
    publicKey={ config.key }
    env={ config.env }
    product={ config.product }
    clientName="CoinVest"
    onShouldStartLoadWithRequest={ (request) => this.onShouldStartLoadWithRequest(request) } // add this line
/>

onShouldStartLoadWithRequest = (request) => {
    if (request.navigationType != undefined && request.navigationType != 'other') {
        // If user click in reset password, the webview return nothing, and react open the 
        // uri in default device browser, "Import Linking of react-native"
        Linking.canOpenURL(request.url).then(supported => {
            if (supported) {
                Linking.openURL(request.url);
            }
            else {
                console.log("Don't know how to open URI: " + request.url);
            }
        });
    }
    else
        return true;
}

@C-Birdwell
Copy link

I am find one solution:

<PlaidAuth
    onMessage={ scope.onMessage }
    publicKey={ config.key }
    env={ config.env }
    product={ config.product }
    clientName="CoinVest"
    onShouldStartLoadWithRequest={ (request) => this.onShouldStartLoadWithRequest(request) } // add this line
/>

onShouldStartLoadWithRequest = (request) => {
    if (request.navigationType != undefined && request.navigationType != 'other') {
        // If user click in reset password, the webview return nothing, and react open the 
        // uri in default device browser, "Import Linking of react-native"
        Linking.canOpenURL(request.url).then(supported => {
            if (supported) {
                Linking.openURL(request.url);
            }
            else {
                console.log("Don't know how to open URI: " + request.url);
            }
        });
    }
    else
        return true;
}

Confirmed working in XCode in a sandbox enviroment.

Thanks so much!

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

No branches or pull requests

2 participants