我正在尝试在我的中实现深度链接,因此用户将能够从浏览器打开应用程序。因此,我在 Manifest.xml 中的应用程序中添加了深层链接。这段代码是从 adb 运行的,但是当我试图在浏览器中打开这个链接时,应用程序没有打开。什么会导致此错误?我什至看不到我的代码中的意图
<activity
android:name=".ui.main.MainActivity"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<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"/>
<data android:scheme="http"
android:host="example.com"
android:pathPrefix="/"/>
</intent-filter>
</activity>