react-navigation.github.io icon indicating copy to clipboard operation
react-navigation.github.io copied to clipboard

docs: add intent-filter for App Links

Open theMasix opened this issue 4 years ago • 1 comments

Add App Link to bare RN manual Android Setup

I just config Deep Links as doc said on our project using this doc and Configuring Links doc. Android and iOS URI Scheme was fine but App Links (https prefixes in linking config object) in android didn't worked as expected.

After some research I found Implement deep linking in React Native apps using Universal links and URL schema and Create Deep Links to App Content and figured that App Links should be configured in AndroidManifest.json too! (rational actually).

So I add these changes to AndroidManifest.json and problem solved.

Maybe I had to create new issue first :)

Notes:

  • I don't know why such an obvious thing didn't exist in document and why other people didn't have this issue too.
  • I didn't check Universal Link on iOS and don't know if it works or not
  • I don't know why uri-scheme command doesn't add intent-filter for app links automatically. Strange!

Device and Project info

`react-native`: `0.62.2`
`react-navigation/native`: `5.6.1`
Physical Device Android version: `10`

theMasix avatar Apr 06 '21 19:04 theMasix

Deploy preview for react-navigation-docs ready!

Built with commit 305f7995582b382b4a1670d1f874e6b7a4eb3bca

https://deploy-preview-967--react-navigation-docs.netlify.app

netlify[bot] avatar Apr 06 '21 19:04 netlify[bot]

Thanks for the PR. We now have a section for app links https://reactnavigation.org/docs/deep-linking/#setup-on-android, so I'm closing this PR

satya164 avatar Oct 21 '22 10:10 satya164