expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after branch integration

lasharela opened this issue · comments

Summary

After implementation react-native-branch configuration everything is working but I'm getting errors in console:

[OxynDEV] [branch.io] Branch.m(336) Error: Branch init error: The Branch user session has not been initialized.
[OxynDEV] [branch.io] Branch.m(408) Error: Your Branch key is not set in your Info.plist file. See
https://dev.branch.io/getting-started/sdk-integration-guide/guide/ios/#configure-xcode-project for configuration instructions.
[OxynDEV] [branch.io] Branch.m(336) Error: Branch init error: The Branch user session has not been initialized.
[OxynDEV] [branch.io] Branch.m(336) Error: Branch init error: The Branch user session has not been initialized.
[OxynDEV] [branch.io] Branch.m(408) Error: Your Branch key is not set in your Info.plist file. See
https://dev.branch.io/getting-started/sdk-integration-guide/guide/ios/#configure-xcode-project for configuration instructions.
[OxynDEV] [branch.io] BNCServerInterface.m(238) Error: An error prevented request to https://api2.branch.io/v1/install from completing: Error
Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid.,
NSLocalizedFailureReason=The request was invalid.}
[OxynDEV] [branch.io] Branch.m(336) Error: Branch init error: The Branch user session has not been initialized.
[OxynDEV] [branch.io] Branch.m(408) Error: Your Branch key is not set in your Info.plist file. See
https://dev.branch.io/getting-started/sdk-integration-guide/guide/ios/#configure-xcode-project for configuration instructions.
[OxynDEV] [branch.io] BNCServerInterface.m(238) Error: An error prevented request to https://api2.branch.io/v1/install from completing: Error
Domain=io.branch.sdk.error Code=1003 "The network request was invalid." UserInfo={NSLocalizedDescription=The network request was invalid.,
NSLocalizedFailureReason=The request was invalid.}

That's how app.config.js looks like:

plugins: [
  [
    "@config-plugins/react-native-branch",
    {
      apiKey: getAppInfo().identifier,
      iosAppDomain: getAppInfo().iosAppDomains,
    },
  ],
],

of course getAppInfo is returning key 

Config Plugin

@config-plugins/react-native-branch

What platform(s) does this occur on?

iOS

SDK Version

46.0.9

Reproducible demo

I can't upload a reprovable demo unfortunately. It's closed project