'Flutter Deep Link Unexcepted Behaviour
I am trying to implement deep links in my flutter app. When user clicked the link inside the Whatsapp app my app open inside the Whatsapp. I want to open my app separately.
In addition to this, when user clicked the same link on instagram it redirects to the store page although app installed on device. I add all validation files to my web site such as assetlinks.json and apple-app-site-assocation. And also when I try to open the link in the command line it works as expected on both platforms. Any help will be appreciated.
Command Line
adb shell am start -a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-d "http://myexampleapp.com/book/1"
Here is my implementation.
AndroidManifest file
<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"/>
<data android:scheme="https"/>
<data android:host="mywebsite.com"/>
</intent-filter>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
