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

URI Scheme not working on Cold Start #650

Open
NassB opened this issue Apr 17, 2020 · 0 comments
Open

URI Scheme not working on Cold Start #650

NassB opened this issue Apr 17, 2020 · 0 comments

Comments

@NassB
Copy link

NassB commented Apr 17, 2020

We are trying to open our iOS application with URI Scheme to redirect users to a specific state, in our handleBranch method we are looking for "+non_branch_link" property in the data returned by initSession().

handleBranch: function () {
                Branch.initSession().then(function (data) {
                    console.warn('### handleBranch ###', data);
                    if (data && data['+clicked_branch_link']) {
                          // do something
                    } else if (data["+non_branch_link"]) {
                        // REDIRECT TO SOME STATE
                    } else {
                        console.log("clicked_branch_link is FALSE");
                    }
                });
}

The content of data is the following on cold start :
{+clicked_branch_link: false, +is_first_session: false}

And on next calls data is the following :
{+clicked_branch_link: false, +is_first_session: false, +non_branch_link: "profonia://my-profonia.app.link/careservant-din"}

Notice that the non_branch_link property is missing on cold start.

We tried to delay the handleBranch method by one second in app.js with no luck.

It's working fine with Universal Link (branch links https://....) but we need to use URI Scheme.

Branch plugin version : 3.2.0
Cordova iOS : 5.0.1

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

1 participant