我在 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/