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

Branch.initSession never fired #443

Closed
matte5031 opened this issue Apr 11, 2018 · 1 comment
Closed

Branch.initSession never fired #443

matte5031 opened this issue Apr 11, 2018 · 1 comment

Comments

@matte5031
Copy link

matte5031 commented Apr 11, 2018

I'm using phonegap and plugin version 2.6.0 but I just can't seem to get Branch.initSession to fire.

The row alert(JSON.stringify(Branch)); works and alerrts {"debugmode" : false}
atleast which is positive atleast. However alert(JSON.stringify(data)); is unfortunately never fired.
Neither is alert('Deep Link Data: ' + JSON.stringify(data));

Tried with iOS and used distribution id.

if (Branch) {
    alert(JSON.stringify(Branch));
}
Branch.initSession(function (data) {
    alert(JSON.stringify(data));
    if (data['+clicked_branch_link']) {
        // read deep link data on click
        alert('Deep Link Data: ' + JSON.stringify(data));
    }

XML looking something like (example data):

<branch-key value="key_live_ejdasdaskpdmjsapsdasdasd" />
<uri-scheme value="myapptestapp" />
<link-domain value="myapptestapp.app.link" />
<ios-team-release value="Y1561FDS51FS5" />

Any help or input is highly appreciated, thanks!

@ethanneff
Copy link
Contributor

Hello,

I apologize for the delay. Were you ever able to get the SDK working? Keep in mind, the Branch Cordova SDK does not support PhoneGap Build. However, if you are using PhoneGap CLI, I would recommend double checking the Getting Started guide. Making sure your Branch Dashboard matches your config.xml is key.

Thanks,

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

2 participants