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

Branch link is detected as non_branch_link on iOS in react-native project #11

Open
rohitgoyal opened this issue Mar 4, 2018 · 0 comments

Comments

@rohitgoyal
Copy link

I have integrated branch in my react-native app using npm install react-native-branch and followed the documentation available for react-native integration on docs.branch.io. When ever i am clicking a branch link it opens the app correctly but the link opens as +non_branch_link.

I have added this in capabilities

applinks:xxxx.xxxxx.com
activitycontinuation:xxxx.xxxxx.com

Added these in Info pList

branch_app_domain => xxxx.app.link
branch_key => MY_APP_KEY

Have added branch.json in my root folder (where .xcworkspace file is)

Added MY_SCHEME as URL scheme

Added these changes in my AppDelegate.m file in didFinishLaunchingWithOptions

....
[RNBranch initSessionWithLaunchOptions:launchOptions isReferrable:YES];
jsCodeLocation ..
.....
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {  if (![RNBranch.branch application:application openURL:url sourceApplication:sourceApplication annotation:annotation]) {    // do other deep link routing for the Facebook SDK, Pinterest SDK, etc  }  return YES; }

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {  return [RNBranch continueUserActivity:userActivity]; }

This is what I am getting as link params

{+clicked_branch_link: false, +is_first_session: false, +non_branch_link: "https://xxxx.xxxxx.com/xxxx"}

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

1 participant