Android 我已经在我的应用程序中集成了深度链接,但它不起作用
我已经在android应用程序中集成了深度链接。我得到的结果如下图所示,并且已经在我的手机中安装了应用程序,但当我点击消息应用程序中的链接时,应用程序图标并没有显示在启动程序列表中。我不知道我的代码实现出了什么问题。提前谢谢 这是我的menifests文件代码Android 我已经在我的应用程序中集成了深度链接,但它不起作用,android,deep-linking,Android,Deep Linking,我已经在android应用程序中集成了深度链接。我得到的结果如下图所示,并且已经在我的手机中安装了应用程序,但当我点击消息应用程序中的链接时,应用程序图标并没有显示在启动程序列表中。我不知道我的代码实现出了什么问题。提前谢谢 这是我的menifests文件代码 <activity android:name=".activity.SplashActivity" android:label="@string/app_name" android
<activity
android:name=".activity.SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.Splash"
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- handle website links -->
<data
android:host="www.abc.in"
android:pathPattern="/event"
android:scheme="https" />
<data
android:host="abc.in"
android:pathPattern="/event"
android:scheme="https" />
</intent-filter>
</activity>
您单击的主机与您的deeplink不匹配。 如果单击:
https://abc.in/event
。它会起作用的
如果您想像上面的示例一样支持deeplink,您应该在当前的intent过滤器上使用它
<data
android:host="maps.google.com"
android:pathPrefix="/maps"
android:scheme="http" />
编辑:
要支持此链接,请执行以下操作:。您需要添加以下内容
<data
android:host="abc.in"
android:pathPrefix="/event"
android:scheme="https" />
你的应用注册了https,但链接是http发布图像中的链接是http
而不是https
my click url:或其他click url是:my url和host my scheme中有什么问题https@Priyankapatel方案是http
还是https
?好的……谢谢,我刚刚将pathPattern更改为pathPrefix,现在正在工作fine@Priyankapatel很高兴听到。接受答案将不胜感激。
<data
android:host="abc.in"
android:pathPrefix="/event"
android:scheme="https" />