react-native-branch-deep-linking-attribution icon indicating copy to clipboard operation
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.

Open kangpeter5 opened this issue 4 years ago • 2 comments

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 })
	}
})

kangpeter5 avatar Mar 10 '21 18:03 kangpeter5

I've been dealing with several issues with branch.io and this is one of them, the specific screen is not receiving any params

Vasault avatar Aug 30 '21 23:08 Vasault

Did you solve it?

sadia-onyxtec avatar Jun 20 '22 12:06 sadia-onyxtec