- HTTP/HTTPS Deep Links (including subdomains): URLs with
http://orhttps://protocols that can open your app when clicked. - Custom URI Schemes: URLs with a custom protocol like
myapp://that are registered to your app.
HTTP/HTTPS Deep Linking with Subdomains
When using subdomains for deep linking, you can create a structured approach to handle different sections or features of your app.- React Native
- Flutter
React Native uses React Navigation for handling navigation and deep linking.
Step 1: Configure your app to handle HTTP/HTTPS links
First, you need to modify your Android and iOS configurations to handle subdomain links.- Android
- iOS
Open your
android/app/src/main/AndroidManifest.xml file and add the following inside the <activity> section:Step 2: Configure React Navigation
In your navigation configuration:Custom URI Schemes for Deep Linking
Custom URI schemes provide an alternative method for deep linking, allowing your app to handle URLs with a custom protocol likemyapp://. While HTTP/HTTPS deep links are generally recommended for production apps, custom URI schemes can be useful in specific scenarios or for backward compatibility.
- React Native
- Flutter
Step 1: Configure your app to handle custom URI schemes
- Android
- iOS
Open your
android/app/src/main/AndroidManifest.xml file and add the following inside the <activity> section:Testing Your Deep Links
- Android
- iOS
- Web
Use
adb for Android testing: