Flutter web adresine gelen kullanıcıları uygulama ile yönlendirme yapmak için aşağıdaki talimatları uygulayabilirsiniz.
ilk olarak
https://pub.dev/packages/uni_links buradan eklentinizi kurun
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- App Links -->
<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" />
<!-- Accepts URIs that begin with https://YOUR_HOST -->
<data
android:scheme="https"
android:pathPrefix="/api"
android:host="sofor.okulservisi.com.tr" />
</intent-filter>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... other keys -->
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:[YOUR_HOST]</string>
</array>
<!-- ... other keys -->
</dict>
</plist>
İos
Testinizi aşağıdaki linkten yapın
https://developers.google.com/digital-asset-links/tools/generator
Aşağıdaki link yapısını oluşturun
https://domain.com/.well-known/assetlinks.json
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.serviskonum.driverapp",
"sha256_cert_fingerprints":
["3A:5C:A0:7A:9A:A1:A2:B2:78:7F:EB:F2:23:9B:50:9F:15:22:86:48:C9:D4:1B:68:E6:E4:7B:A0:17:39:7F"]
}
}
]