diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md index 0e17929d..fb0b17ff 100644 --- a/docs/docs/introduction.md +++ b/docs/docs/introduction.md @@ -257,3 +257,34 @@ The scheme is the beginning of your OAuth Redirect URL, up to the scheme separat is `com.myapp://oauth`, then the url scheme will is `com.myapp`. The scheme must be in lowercase. NOTE: When integrating with [React Navigation deep linking](https://reactnavigation.org/docs/deep-linking/#set-up-with-bare-react-native-projects), be sure to make this scheme (and the scheme in the config's redirectUrl) unique from the scheme defined in the deep linking intent-filter. E.g. if the scheme in your intent-filter is set to `com.myapp`, then update the above scheme/redirectUrl to be `com.myapp.auth` [as seen here](https://github.com/FormidableLabs/react-native-app-auth/issues/494#issuecomment-797394994). + +#### App Links + +If your OAuth Redirect URL is an [App Links](https://developer.android.com/training/app-links), you need to add the following code to your `AndroidManifest.xml`: + +```xml + + + + + + + + +``` + +Replace `android:host` with the domain of your redirect uri. + +You need to add the `manifestPlaceholders` as described in the section above: + +``` +android { + defaultConfig { + manifestPlaceholders = [ + appAuthRedirectScheme: 'example.domain' + ] + } +} +```