-
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
injectPreferences in projectEntitlements.js should merge associated domains with current instead of overwriting #278
Comments
@renesansz this is related to the entitlements file for ios. If I have an entitlements file with multiple associated domains
And have branch-config
Then I expected the entitlements file to have all 3
however it gets overwritten and only contains domain3 |
Hello @djett41, Thank you for finding this bug. I have updated our latest Pull Request code to change the Associated Domains to append instead of remove. May I ask what other plugins you are using which is modifying the Associated Domains? Also, what you are trying to accomplish with multiple associated domains? This information will be helpful in knowing what plugins are compatible with Branch. Best, |
@ethanneff thanks again! We have a single cordova project for multiple apps, and app config as well as deep links, get changed depending on which app we are building for. |
Hello @djett41, You may run into further complications if you are using the same codebase for multiple apps. For Branch to work properly, you will need to create a new Branch dashboard account for each app. Branch deep links need a way to distinguish between all your apps on the same device. For example:
This means that each of your apps will need to be assigned a unique Best, |
@ethanneff thats correct, thats how it is currently, and for each app the branch uri scheme and domain is changed at build time. So given the multiple app scenario, how do you recommend setting up the config.xml or all branch config to support the following for ios and android for multiple apps given the following
I would like to be able to support current app links and old bnc links which are still live by using the CLI rather than having to manually figure out a way to inject the second link in the entitlements/manifest file. Thanks! |
Hello @djett41, Using both Additionally, filling up your iOS entitlements and Android Intents with multiple link domains is not ideal either. Whenever a user clicks on a deep link, the deep link could navigate to the wrong app because of the multiple entries. This will cause deep link data to not pass through and skew your Branch metrics with invalid clicks, opens, and installs. What you are trying to achieve is against Branch's recommend configuration. If you want to continue using multiple apps with the same code base, your best bet is to make a build script on top of your apps to install Branch and assign a unique Best, |
If you have an Entitlements file with a list of associated domains, this plugin will read the file but then overwrite the associated domains instead of merging with them.
So instead of re-setting the array, it should first check to see if the domain exists, and if not add it to the existing array
The text was updated successfully, but these errors were encountered: