Branch plugin doesn't work with "test" API keys
Library
https://github.com/expo/config-plugins/tree/main/packages/react-native-branch
Summary
When using Branch with the expo config-plugin, the plugin takes in an apiKey parameter. This adds an entry to the info.plist for:
<key>branch_key</key>
<dict>
<key>live</key>
<string>key_xxxxx</string>
</dict>
If you put a test key into your app.json config, then the SDK won't properly connect to the test environment of Branch; it still has a live key, and there's a mismatch, so none of your links can be properly processed by the SDK.
My requests:
- Add a parameter for a
testApiKeywithin theapp.jsonconfig - Add a flag to enable debugging logs for Branch if possible
Any existing examples?
No response
Was gonna make a PR for this but realised there already is one here that's been waiting for a review for months:
https://github.com/expo/config-plugins/pull/229
@EvanBacon / @maintainers, can this be reviewed and merged in please?
+1, please review https://github.com/expo/config-plugins/pull/229
Any chance we could get please get eyes on this PR?
+1
+1
+1
+1
hi there! the config plugin here is provided as-is and is community maintained. if it does not work for you, i'd suggest asking branch folks for support. we are not familiar with branch nor do we use it ourselves at expo, although i imagine it is a good service! ideally branch should ship their own config plugin.
+1
Note that branch explicitly says they do not maintain this plugin::
@rodperottoni already wrote the fix: #229 . @EvanBacon / @brentvatne Could someone please reopen this issue and look at #229 ? Anyone using Expo and Branch (for deferred deep linking) will run into this issue.
Workaround - Create 2 Branch apps. One app for development and one for preview/production. Use "live" keys from both.