Flutter Deep Link
Hello everyone, today we will talk about the flutter deep link. Sometimes we may want to open our mobile application from the browser, and the flutter deep link is resolving this problem.
Usage
First of all, we must enable deep link on the phone, this example will enable deep link on android.
<!-- Deep linking -->
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
<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" />
<data android:scheme="http" android:host="flutterbooksample.com" />
<data android:scheme="https" />
</intent-filter>
A full restart is required to apply these changes.
Test on Android emulator
now we open the browser in the emulator and we text http://flutterbooksample.com/
and go the adress. The web browser will check if the app is installed on the phone and hey, the app is installed do you want to open this address on the phone? if we press ok our application will open on the phone.
Source:https://docs.flutter.dev/development/ui/navigation/deep-linking
Good work everyone.