-
Notifications
You must be signed in to change notification settings - Fork 145
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
config format discrepency #283
Comments
Hello @sfeast, Thank you for reaching out. Can you help answer some questions so I can better troubleshoot your issue?
<!-- sample config.xml -->
<widget id="com.eneff.branch.cordova_testbed" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<!-- Branch -->
<plugin name="branch-cordova-sdk" />
<branch-config>
<branch-key value="key_live_ndqptlgXNE4LHqIahH1WIpbiyFlb62J3" />
<uri-scheme value="cordovatestbed" />
<link-domain value="cordova.app.link" />
<ios-team-release value="PW4Q8885U7" />
</branch-config> |
Thanks @ethanneff 1st I should have mentioned that this is so far iOS specific (haven't tested on android) For your questions:
iv. Run "cordova prepare" & I believe this is where the error comes (again actually running in a custom build process so I'd need to manually go through this to be 100% - which isn't a problem if needed, let me know)
Thanks again! |
Hello again, So the reason why your app is pulling the latest version is because you have The old way of importing the SDK was as follows: cordova plugin rm io.branch.sdk
cordova plugin add branch-cordova-sdk@2.2.5 --variable BRANCH_KEY=xxxx --variable URI_SCHEME=xxxx You can do the above and remove <!-- sample config.xml -->
<widget id="com.eneff.branch.example" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<!-- Branch -->
<plugin name="branch-cordova-sdk" spec="~2.4.2" /> <!-- optional spec -->
<branch-config>
<branch-key value="key_live_ndqptlgXNE4LHqIahH1WIpbiyFlb62J3" />
<uri-scheme value="cordovatestbed" />
<link-domain value="testbed.app.link" />
<ios-team-release value="PW4Q8885U7" />
<ios-team-debug value="FG35JLLMXX" /> <!-- optional -->
<android-prefix value="/WSuf" /> <!-- optional (for bnc.lt) -->
<android-testmode value="true" /> <!-- optional (simulate installs) -->
</branch-config> Updating your Best, |
Thanks @ethanneff, pretty sure I'm clear on what needs to be done here, thanks so much for the thorough explanation!! |
I use custom config android-packageName, ios-CFBundleIdentifier. But you only check id https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking/blob/5365ad31eace18e388149bec3348032877fd30f2/src/scripts/lib/sdk/configXml.js#L51 |
Hello @vomchik, Thank you for bringing this to my attention. I will add this logic to our SDK and hopefully get a release as early as tomorrow. I will keep you updated. Best, |
Thanks! |
Thanks! |
When installing older releases of the plugin I'm seeing:
Error: BRANCH SDK: Invalid "branch-key" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP
I'm using the older format of including the branch key & uri scheme in the "cordova plugin add branch-cordova-sdk" command so thinking something is getting included that expects the latest format as described on the latest README.md.
The text was updated successfully, but these errors were encountered: