1

My question is about Linking of react-native : https://reactnative.dev/docs/linking

I implement this functionnality but I have a behavior that I don't want.

In case of my app is close, I click on a link and my app start. But before the link is detected my app start normaly, and after the link detected by the method Linking.getInitialURL() the redirection is done. I find this behavior weird because the application starts as if it had been started normally and after a delay the link is detected and the redirection is executed. The user see the start useless screen before the redirecton.

Moroever it's a problem if the redirection with url is faster than the normally redirection. We see firt the redirection with url, and after the redirection of open app. So user can't access to the link redirection.

I don't know how resolve properly this problem.

enter image description here

HyperNovax
  • 116
  • 2
  • 12
  • What about showing the user URL and redirect him onPress? if i understand correctly. – armin yahya Jan 20 '21 at 17:13
  • Thank you for your proposal. But I don't think is user friendly. – HyperNovax Jan 20 '21 at 21:33
  • I added a picture to help understand my problem. One solution is to put a timeout to wait the redirection A, so that the redirection A is done before B, but the Loading context can take an indefinite time. I'm not a fan of this solution. – HyperNovax Jan 20 '21 at 21:38
  • this question is hard to understand. can u add a step by step example of wrong behavior? e.g. open page A, redirection url of page B is displaying ... – armin yahya Jan 21 '21 at 08:20

0 Answers0