Flutter Deep Links — App Links, Universal Links, and go_router Integration
Implementing deep links that open the app from both myapp:// and https:// URLs.
Android: App Links Setup
<!-- android/app/src/main/AndroidManifest.xml --> <activity ... > <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= "myapp.example.com" /> </intent-filter> </activity>
Enter fullscreen mode
Exit fullscreen mode
// web/.well-known/assetlinks.json (served from Firebase Hosting) [{ "relation" : [ "delegate_permission/common.handle_all_urls" ], "target" : { "namespace" : "android_app" , "package_name" : "com.example.myapp" , "sha256_cert_fingerprints" : [ "AA:BB:CC:..." ] } }]
Enter fullscreen mode
Exit fullscreen mode
iOS: Universal Links Setup
<!-- ios/Runner/Runner.entitlements --> <key>…