Hello everyone 👍💖💖💖
We are going to create deep links for our app.
Deep link
When a clicked link or programmatic request invokes a web URI intent, the Android system tries each of the following actions, in sequential order, until the request succeeds:
Open the user’s preferred app that can handle the URI, if one is designated.
Open the only available app that can handle the URI.
Allow the user to select an app from a dialog
This is taken from Android documentation
Create a new project
In Designer
Add your package name e.g. com.xdev.deeplink
Upload intent-filters.txt in Assets
Basic information about above code
autoVerify - When `it’s true and present in your app’s intent filters, installing your app on a device that runs Android 6.0 (API level 23) or higher causes the system to automatically verify the hosts associated with the URLs in your app’s intent filters
scheme - You can add http, https and any custom text e.g. app.
host - You can add the domain which you want to verify e.g. www.xdevpro.com
This is going to be added in your app’s AndroidManifest.xml (Screen1). So, Android will always open our app whenever https://www.xdevpro.com or http://www.xdevpro.com is clicked.
Creating a deep link
Requirements
To create a deep link, You need :
A website’s link (We will use www.thesocialbus.com 4). Thanks to @Jay for his website.
A assetlinks.json file which must be uploaded at
https://domain.name/.well-known/asset...
Generating assetlinks.json file
It is required for auto verifying your domain in devices above Android 12.
Visit this site and generate the assetlinks.json file.
Hosting site domain - Enter your domain name e.g. www.xdevpro.com
App package name - Enter app’s package name e.g. com.xdev.deeplink
App package fingerprint (SHA256) - Get it from Appzard workspace