Branch: handling push notifications

#1

Dear Community,

Is there anyone handling push notifications with branch links?

I’ve seen this solution https://github.com/BranchMetrics/react-native-branch-deep-linking#programmatic-deep-linking, but don’t have a clear picture of how to integrate RNBranch.initSession into MainActivity of the detached expo app.

If you’re familiar with it, could you please also recommend:

  1. whether we need to start a new activity (use newActivity flag when calling branch.openURL in JS);

  2. if not, how should we modify the Java part? I see BranchManager.handleLink called here and here. Should we just copy-paste the code from programmatic deep-linking session to our MainActivity.java and replace RNBranch.initSession by something else?

Best regards,
Nikita