Php Deeplink工作不正常

Php Deeplink工作不正常,php,android,python,web,deep-linking,Php,Android,Python,Web,Deep Linking,我创建了一个deeplink表单android studio,并将assetlinks.json文件上传到主机上我的.well文件夹中 在android studio深度链接构建工具上一切正常,但当我点击我网站上的链接时,它不会打开应用程序。 我的深度链接配置如下: <activity android:name=".activities.OrdersActivity" android:screenOrientation="portrait">

我创建了一个deeplink表单android studio,并将assetlinks.json文件上传到主机上我的.well文件夹中

在android studio深度链接构建工具上一切正常,但当我点击我网站上的链接时,它不会打开应用程序。 我的深度链接配置如下:

<activity
       android:name=".activities.OrdersActivity"
       android:screenOrientation="portrait">
       <tools:validation testUrl="https://myhost.com/cart/success" />

       <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:scheme="https"
               android:host="myhost.com"
               android:pathPrefix="/cart/success" />
       </intent-filter>
   </activity>

你的代码看起来不错。您在哪个应用程序中单击了链接?他们可能正在阻止deeplinks并在应用程序中使用打开它们

您可以通过执行下面的adb shell命令来尝试您的deeplinks:

am start -a android.intent.action.VIEW -d "https://myhost.com/cart/success?Authority=000000000000000000000000000000074139&Status=OK"
为了实现deeplinks,不需要将assetlinks.json文件上载到.wellknown文件夹。它是applinks所必需的。applink和deeplink的区别在于,当applinking自动启动应用程序时,deeplinking需要用户批准才能启动应用程序

请参阅下面的文章以获得更详细的解释


我在Chrome for Android上打开了我的链接,但它只是重新加载并在我的网站上打开了一个页面
am start -a android.intent.action.VIEW -d "https://myhost.com/cart/success?Authority=000000000000000000000000000000074139&Status=OK"