Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 具有可变主机的flifter和iOS中的深度链接_Android_Ios_Flutter - Fatal编程技术网

Android 具有可变主机的flifter和iOS中的深度链接

Android 具有可变主机的flifter和iOS中的深度链接,android,ios,flutter,Android,Ios,Flutter,只要url以某个扩展名结尾,我如何从任何主机的iOS链接打开我的应用程序? 我想打开我的应用程序的链接,如下所示: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>*/myapp.app</string> <key>CFBund

只要url以某个扩展名结尾,我如何从任何主机的iOS链接打开我的应用程序? 我想打开我的应用程序的链接,如下所示:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>*/myapp.app</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>http</string>
            <string>https</string>
        </array>
    </dict>
</array>
{http或https}://{any.random.host}/{custom/fixed/path}

主机是我这里的主要问题,因为我无法控制主机的位置(我知道会有不止一台),我无法在iOS或Android配置文件中设置固定主机。另外,我不能使用与http或https不同的方案,因为我需要,如果应用程序不可用,它应该指向并打开网站

在Android中,我可以在AndroidManifest.xml文件中执行以下操作:

<intent-filter android:autoVerify="false">
    <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="*"
        android:path="/myapp.app"
    />
    <data android:scheme="http"/>
</intent-filter>

说我需要编辑我的Info.plist,它看起来像:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>*/myapp.app</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>http</string>
            <string>https</string>
        </array>
    </dict>
</array>
CbundleUrlTypes
CFBundleURLName
*/myapp.app
循环流化床锅炉方案
http
https

但这不起作用,它甚至不适用于正常的BundleURLName(例如,www.myapp.app),我想这是因为我不能在iOS中使用http和https进行深度链接,但我不确定。

你解决了这个问题吗?请告诉我,我也被同样的问题困扰着issue@Monty我没有找到任何解决方案:/,所以我选择使用Firebase动态链接和通用链接的组合…你解决了这个问题吗?请告诉我,我也被同样的问题困住了issue@Monty我没有找到任何解决方案:/,所以我选择混合使用Firebase动态链接和通用链接。。。