According to https://flutter.dev/docs/development/ui/navigation/deep-linking
I have added the following to the AndroidManifest.xml:
<!-- 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="appName" android:host="com.companyName.appName" />
</intent-filter>
opening the App deployed on a real device and connected via USB worked by calling:
adb shell am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "appName://com.companyName.appName/"
and even opening some subpages like: adb shell am start -W -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "appName://com.companyName.appName/help"
But a few questions are left:
- How can I open the App from another app (and not via adb)?
- How can I add arguments for the view to open?