【发布时间】:2018-02-12 14:52:06
【问题描述】:
我已经在清单文件中的应用程序中实现了深层链接,我已经像这样定义了intent-filter
<activity
android:name=".activity.ProfilePreviewActivity"
android:theme="@style/AppTheme.ActionBar.Transparent">
<intent-filter android:autoVerify="true" android:label="@string/app_name"
tools:targetApi="m">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:host="appsdata2.cloudapp.net"
android:scheme="https"
/>
</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:host="appsdata2.cloudapp.net"
android:scheme="http"
/>
</intent-filter>
</activity>
现在的问题是:
我已经为两者定义了方案,还添加了android:autoVerify="true"
在 Android 6.0.1 中使用应用安装
https 方案 - url 打开应用程序并完美运行
http 方案 - url 打开浏览器不是实际的应用程序?我错过了什么吗?
我已经关注https://stackoverflow.com/a/39486914/1293313 但没有运气
在 Android 7.1.1 中安装应用
https 方案 - url 打开应用程序并完美运行 http 方案 - url 打开应用程序并完美运行(已编辑)
【问题讨论】:
标签: android deep-linking android-7.0-nougat android-7.1-nougat