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

config.xml changes #302

Closed
Ziv-Barber opened this issue Mar 16, 2017 · 1 comment
Closed

config.xml changes #302

Ziv-Barber opened this issue Mar 16, 2017 · 1 comment

Comments

@Ziv-Barber
Copy link

In the past the config.xml was:

<branch-config>
	<android-prefix value="myapp" />
	<ios-team-id value="12345678" />
	<host name="myapp.app.link" scheme="https" />
	<host name="myapp-alternate.app.link" scheme="https" />
</branch-config>

And everything worked fine.
But you decided to change it in the last version.
I tried:

<branch-config>
	<android-prefix value="myapp" />
	<branch-key value="key_live_ABCDEFG..." />
	<uri-scheme value="myapp" />
	<link-domain value="myapp.app.link" />
	<ios-team-prod value="12345678" />
	<ios-team-release value="12345678" />

	<ios-team-id value="12345678" />
	<host name="myapp.app.link" scheme="https" />
	<host name="myapp-alternate.app.link" scheme="https" />
</branch-config>

I got an error:

Error: BRANCH SDK: Invalid "android-prefix" in in your config.xml

What I'm doing wrong?

@ethanneff
Copy link
Contributor

Hello,

The only required values you need in your config.xml are: docs

<!-- sample config.xml -->
<widget id="com.eneff.branch.cordovatestbed" 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" spec="^2.5.0" />
  <branch-config>
    <branch-key value="key_live_ndqptlgXNE4LHqIahH1WIpbiyFlb62J3" />
    <uri-scheme value="branchcordova" />
    <link-domain value="cordova.app.link" />
    <ios-team-release value="PW4Q8885U7" />
  </branch-config>

<android-prefix> is only needed if you have the legacy bnc.lt link domain. The format is /WSuf. docs

If you are still having issues, you might need to reinstall Branch. docs

# terminal
cordova plugin remove io.branch.sdk
cordova plugin remove branch-cordova-sdk
cordova build ios

Tell me if this fixes your issue.

Best,

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