根据官方文档描述,推测出在3.27以前deepinking_enabled默认应该是关闭的,所以这个时候使用自定的deeplink是正常的, 升级到3.27以及更新的版本以后如果使用了自定义的deeplink需要关闭设置值为false
Android设置
-
Version note
If you use a Flutter version earlier than 3.27, you need to manually opt in to deep linking by adding the following metadata tag to
<activity>:<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />Note
If you use a third-party plugin to handle deep links, such as app_links, Flutter's default deeplink handler will break these plugins.
To opt out of using Flutter's default deep link handler, add the following metadata tag to
<activity>:<meta-data android:name="flutter_deeplinking_enabled" android:value="false" />
iOS设置
Adjust iOS build settings
-
Launch Xcode.
-
Open the
ios/Runner.xcworkspacefile inside the Flutter project'siosfolder.Version note
If you use a Flutter version earlier than 3.27, you need to manually opt in to deep linking by adding the key and value pair
FlutterDeepLinkingEnabledandYEStoinfo.Plist.Note
If you're using third-party plugins to handle deep links, such as app_links, Flutter's default deeplink handler will break these plugins.
If you use a third-party plugin, add the key and value pair
FlutterDeepLinkingEnabledandNOtoinfo.Plist.