我在 http 方案上使用深度链接让用户直接从http://myapp.com/invitation?code=xxxxxx等链接打开我的应用程序
只要用户不使用名为 Dolphin 的浏览器,它就可以正常工作,例如,默认的 android 浏览器,Firefox 和 Chrome 工作正常
确实,安装此浏览器后,链接将直接在浏览器中打开,而我没有上下文菜单可以“打开链接”并能够选择我的应用程序。
有没有人有同样的行为?
Android 4 (API 19) 或 5 (API 21)。
<activity
android:name=".DeepLinkedActivity">
<intent-filter>
<data
android:host="myapp.com"
android:pathPrefix="/invitations"
android:scheme="http" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>