Dep Link URL定义在调试清单中不起作用

发布于 2025-01-24 16:05:05 字数 1904 浏览 1 评论 0原文

它运行良好,直到我们拥有单一清单文件,现在我们为不同的构建变体创建了不同的清单,现在为调试变体不起作用的Deep Deep Link。请帮助我。谢谢 这是调试的清单文件

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.app.myapp">

    <application
        android:name=".MyApplication"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:allowBackup="false"
        android:theme="@style/Theme.AndroidAppUser.Default"
        tools:replace="android:allowBackup"
        >
        <activity
            android:name=".ui.MainActivity"
            android:screenOrientation="portrait"
            android:launchMode="singleTask"
            android:exported="true"
            android:windowSoftInputMode="adjustPan"
            android:hardwareAccelerated="true">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
           
          
            <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="mydomain.com"
                    android:pathPattern="/.*" />
            </intent-filter>

        </activity>
    </application>

</manifest>

It was working fine till we have single Manifest file now we have created different Manifest for different build variant now deep link for debug variant not working. Please help me on this.Thanks
Here is the Manifest file for debug

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.app.myapp">

    <application
        android:name=".MyApplication"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:allowBackup="false"
        android:theme="@style/Theme.AndroidAppUser.Default"
        tools:replace="android:allowBackup"
        >
        <activity
            android:name=".ui.MainActivity"
            android:screenOrientation="portrait"
            android:launchMode="singleTask"
            android:exported="true"
            android:windowSoftInputMode="adjustPan"
            android:hardwareAccelerated="true">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
           
          
            <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="mydomain.com"
                    android:pathPattern="/.*" />
            </intent-filter>

        </activity>
    </application>

</manifest>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文