react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
Deep links do not bring user to the correct screen if the app is not open in the background.
Deep links take users to the correct page with the filters in place while the app is open in the background. However, if the app is not open, they only bring you to the Home Screen.
Current setup
branch.subscribe(({ error, params, uri }) => {
if (error) {
console.error('Error from Branch: ' + error)
return
}
if (params['+non_branch_link'] || !params['+clicked_branch_link']) {
return
}
if (params['filter_types']) {
const filters = params['filter_types'].split(',').map((i) => i.trim())
const container = NavigatorService.getContainer()
container._navigation?.navigate(Routes.LocationsScreen, { filter: filters })
}
})
I've been dealing with several issues with branch.io and this is one of them, the specific screen is not receiving any params
Did you solve it?