android - Android 浏览器中的深层链接未打开应用程序

标签 android

我在 list 中为 ResultPayActivity 定义了 Intent 过滤器,如下所示:

<activity android:name=".ResultPayActivity"
android:screenOrientation="portrait">
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="sanduqcheh"  />
</intent-filter>

我的应用程序包是:com.example.pegah_system.sanduqchehproject。此应用已安装。

现在我想通过这个深层链接在浏览器中调用应用程序:

intent://1#Intent;scheme=sanduqcheh;package=com.example.pegah_system.sanduqchehproject;end

但是我在浏览器调用时App无法执行,在google.com上搜索url。

我已经阅读了有关此的其他问题,但我的问题没有得到解决。

我该如何解决这个问题?

最佳答案

我认为这是值得一提的:

Deep links will not open your app if you type the link on your browser. You must click on the link in order to launch your app

我浪费了将近一个小时来调试一个非常好的代码,后来发现问题出在我一直在输入链接!

关于android - Android 浏览器中的深层链接未打开应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50565721/

相关文章:

android - Android 应用程序在 "client hello"期间发送的密码套件

android - 动画列表在 Android 5.0 (Lollipop) 中不起作用

android - 无法使用 Android Auto 'android.car' 库 - 引发 RuntimeException : Stub

android - 管道 : Minimum supported Gradle version is 4. 10.1。当前版本是 4.4

java - 将 HTTPURLConnection 与 MultiPartEntityBuilder 结合使用

android - 向 Facebook 好友发送加入我的网站的邀请

java - 如何将 Firebase 数据转换为 Java 对象...?

android - 任务 ':MyApp:dexDebug' 执行失败

android - android中的图像模糊

android - 未显示 ionic 应用启动画面