config-plugins icon indicating copy to clipboard operation
config-plugins copied to clipboard

Branch plugin doesn't work with "test" API keys

Open jvgeee opened this issue 1 year ago • 4 comments

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 testApiKey within the app.json config
  • Add a flag to enable debugging logs for Branch if possible

Any existing examples?

No response

jvgeee avatar Jun 26 '24 06:06 jvgeee

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?

jvgeee avatar Jun 27 '24 00:06 jvgeee

+1, please review https://github.com/expo/config-plugins/pull/229

belle-chang avatar Aug 07 '24 16:08 belle-chang

Any chance we could get please get eyes on this PR?

j3lev avatar Sep 16 '24 21:09 j3lev

+1

madhav-nasit avatar Oct 24 '24 06:10 madhav-nasit

+1

evanczhou avatar Dec 09 '24 23:12 evanczhou

+1

michaelbutler1998 avatar Dec 23 '24 13:12 michaelbutler1998

+1

trujic1000 avatar Mar 12 '25 19:03 trujic1000

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.

brentvatne avatar Jun 03 '25 00:06 brentvatne

+1

Note that branch explicitly says they do not maintain this plugin::

Image

@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.

howwellapp avatar Sep 16 '25 21:09 howwellapp