Menu

1 / 2

Flutter Deep Links — App Links, Universal Links, and go_router Integration

DEV Community·kanta13jp1·7 months ago
#61Nq1KUJ
#flutter#ai#indiedev#programming#android
Reading 0:00
15s threshold

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>…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.