Reputation: 41
I'm having the following problem with deep links in flutter.
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- DeepLinks -->
<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="https" android:host="hordevfree.online" android:pathPrefix="/"/>
</intent-filter>
</activity>
Working with the command adb
adb shell 'am start -a android.intent.action.VIEW \
>> -c android.intent.category.BROWSABLE \
>> -d "https://hordevfree.online/success"' \com.hordev.porcicultor
But when opening the link from another app it does not work and the page opens instead of opening the application
Upvotes: 0
Views: 1273
Reputation: 41
https://developer.android.com/training/app-links/verify-android-applinks?hl=en-419#manual-verification Following all the steps the command that helped me was the
adb shell pm get-app-links <PackageName>
With which I could see that my app was being signed with another signature, I don't know the reason. I put that signature in the assetlinks.json file and it works 100%.
Upvotes: 1