Configuring Deep Linking Schemes for Android and iOS
Android
1. Open your project directory and navigate to: android/app/src/main/AndroidManifest.xml
2. Locate the <data android:scheme="demo" /> tag inside your <intent-filter> .
3. Replace existing scheme with your preferred custom scheme. How to make scheme
Example: xml <data android:scheme="shortzz" />
Replace example.com with your domain. Make sure do not add http or https , it should be simple. e.g. retrytech.com and if your base URL is subdomain then it's look like this (shortzz.retrytech.com)
iOS
Open the ios directory in Xcode.
In Xcode, go to the Runner folder and open the Info.plist file.
Right-click on the file and select Open As > Source Code to view the raw XML.
Locate the following section: (Where the value of key : CFBundleURLName is Deep Linking )
<dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>Deep Linking</string> <key>CFBundleURLSchemes</key> <array> <string>shortzz</string> </array> </dict>
Replace existing scheme with your preferred custom scheme. How to make scheme
It should be same in Android & iOS.
In the Project Navigator, select the Runner project.
Select the Runner target, then go to the Signing & Capabilities tab (on the right panel).
Under the Associated Domains section, replace the existing entries with your domains using the following format: (Make sure do not add http or https , it should be simple. e.g. retrytech.com and if your base URL is subdomain then it's look like this shortzz.retrytech.com )
- applinks:example.com
- applinks:example.com?mode=developer