Setup Deeplink
In this guide, we'll integrate the deep linking for the Android and iOS Apps
Android Setup
- Create a file named
assetlinks.json
and add namespace, package and sha256 - Upload the
assetlinks.json
file to the website (https://example.com/.wellknown/assetlinks.json (opens in a new tab)) - Add
intent-filter with domain, path, scheme,
etc in theactivity
tag ofAndroidManifest.xml
- meta-data
flutter_deeplinking_enabled
to theactivity
tag - To test deep links, Execute the following command in the terminal
adb shell am start -a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-d [https://example.com](https://example.com/)
- Test it in physical device, Send the url to any of the notes app and click the link.
For more info: Android App Links (opens in a new tab)
iOS Setup
- Add
Associated Domain
capability. Prefix the domain withapplinks:
- Create a new file named
apple-app-site-association
with no file extension. Add details like appIds (teamId.BundleID), components (url path), etc - It must be uploaded in the (https://ensembleui.com/.wellknown/apple-app-site-association (opens in a new tab)), needs to be served with content type (application/json) but without the file extension
- Add
FlutterDeepLinkingEnabled
to theInfo.plist
file - To test deep links, Use
xcrun simctl openurl booted [https://example.com/path]
(https://example.com/path (opens in a new tab)) - Test it in physical device, Send the url to any of the notes app and click the link
For more info: iOS Universal Link (opens in a new tab)
For Deferred Deep Linking
Checkout - https://docs.ensembleui.com/#/build/deep-link/deferred-deeplink (opens in a new tab)