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

Deep Linking is not working #3083

Closed
j3rin opened this issue Jun 15, 2018 · 2 comments
Closed

Deep Linking is not working #3083

j3rin opened this issue Jun 15, 2018 · 2 comments

Comments

@j3rin
Copy link

j3rin commented Jun 15, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.31
  • react-native v0.50.1

I was able to open the app when I send app name://pagename, but it doesn't direct me to the page name. attaching the code below, I set up everything on info list and AppDelegate

		<Scene key="root">

		<Scene key="tabs" tabs={true} showLabel= {false} unmountScenes={false}  tabBarStyle={styles.tabNavigator} pressOpacity={1} type={ActionConst.RESET} >
			<Scene key="Home"
				initial={true}
				component={Home}
				hideNavBar 
				icon={props => ( 
					<TabIcon
       	 tab_icon="Book"
						tab_title="Recipes"
						selected={props.focused}
					/>
		  		)}>
		  </Scene>



		<Scene key="search" path = {"search"}			
		component={Search} 
		hideNavBar

		icon={props => (
		  <TabIcon
		  tab_icon="Search"
			tab_title="Search"
			selected={props.focused}
		/>
		)}>
	  </Scene>
		
		
		<Scene key="favorite"
		path = {"favorite"}			
		component={Favorite} hideNavBar
	  icon={props => (
			<TabIcon
			tab_icon="Heart"
			tab_title="Favorites"
			selected={props.focused}
	  />
	  )}>
	</Scene>	
	<Scene key="devices"

	component={Device} 
	hideNavBar 
	icon={props => (
	  <TabIcon
	  tab_icon="Cloud"
		tab_title="Devices"
		selected={props.focused}
	/>
	)}>
	
  </Scene>
  <Scene key="settings"

	component={Settings} 
	hideNavBar
  icon={props => (
		<TabIcon
		tab_icon="Settings"
		tab_title="Settings"
		selected={props.focused}
  />
  )}>
  
</Scene>
	
		</Scene>
		<Scene key="intro" direction="leftToRight" type='reset' component={Intro} hideNavBar={true} title="Intro" initial={false}/>
@taichi-jp
Copy link

taichi-jp commented Jun 20, 2018

I've encountered the same issue using iOS simulator.
It works after I shutdown the app, but when the app is running in background, it only reopens the app, not directing to the page. I used the following command:

$ xcrun simctl openurl booted "my-app://path/to/the/page"

@taichi-jp
Copy link

@j3rin
I resolved the problem, it works now!
Check out the configuration in AppDelegate.m .
https://facebook.github.io/react-native/docs/linking

@aksonov aksonov closed this as completed Jul 9, 2018
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

3 participants