react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
getFirstReferringParams always returns empty objects on Android cold starts
Hi there,
We're running into an issue with react-navigation
deep linking and Branch integration on Android. Currently on Android cold starts we are unable to get params from getFirstReferringParams
.
Expected:
- User receives a deep link on Android with the app closed
- In
getInitialUrl
we get the applinks url from Branch and get params fromgetFirstReferringParams
as described here: https://reactnavigation.org/docs/deep-linking/#third-party-integrations
Actual:
- User receives a deep link on Android with the app closed
- In
getInitialUrl
we get the applinks url from Branch and get an empty object (no keys or values) fromgetFirstReferringParams
.
Notes:
- We have followed all integration steps outlined in the docs
- We are calling
branch.skipCachedEvents();
as events even after they are handled call thebranch.subscribe
function even if a deep link has already been handled - iOS works just fine
Environment:
react-native: 0.63.4 react-native-branch: 5.0.1
getFirstReferringParams and getLatestReferringParams don't return anything useful until after a successful branch.subscribe, AFAIK that's just undocumented behavior
this is exactly the issue I'm running right now, whenever I open my app, I'm receiving an URL that is basically attached to my app no matter how much I clean everything from the cache to internal memory, it keeps appearing at the start up
Having the same issue, any update?