Flutter Deep links: iOS (Universal links) and Android (App links)

iOS (Universal links)

<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:[НАШ_ХОСТ]</string> // applinks:myapp.com

</array>
{
"applinks": {
"apps": [],
"details": [{
"appID": "[TEAM_ID].[APP_BUNDLE_ID]",
"paths": ["[PATH_FOR_REDIRECTION]"]
}]
}
}
"paths": [
"/your_path", // бwill be redirected if we go to <https://myapp.com/your_path>
"/your_path/*", // will be redirected if we go to <https://myapp.com/your_path/[что_угодно_дальше]>
"*", // will be redirected to any link <https://myapp.com/[anything_further]>
"NOT /your_path", // will be redirected to any link other than <https://myapp.com/your_path>
"NOT /your_path/*", // will be redirected to any link other than <https://myapp.com/your_path/[anything_further]>
]

Android (App links)

<manifest ...>
<!-- ... other tags -->
<application ...>
<activity ...>
<!-- ... other tags -->
<!-- App Links -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with https://YOUR_HOST -->
<data
android:scheme="https"
android:host="myapp.com" />
</intent-filter>
</activity>
</application>
</manifest>
<data
android:scheme="https"
android:host="myapp.com"
android:pathPrefix = "/articles" />
{
"relation": [
"delegate_permission/common.handle_all_urls"
],
"target": {
"namespace": "android_app",
"package_name": "[APP_BUNDLE_ID]", // example: com.example.myapp
"sha256_cert_fingerprints": [
"[YOUR_MACHINE_256_FINGERPRINT_1", // for example debug key
"[YOUR_MACHINE_256_FINGERPRINT_2", // for example release key
"[PLAY_MARKET_256_FINGERPRINT", // If you use automatic keys in the play store
]
}
}
]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
AppVesto LLC

AppVesto LLC

322 Followers

We are a team of rock-star developers, which provides fully-flexible and powerful products 💥.