从浏览器重定向到Android应用程序-发布应用程序之前

从浏览器重定向到Android应用程序-发布应用程序之前,android,android-intent,android-manifest,android-deep-link,Android,Android Intent,Android Manifest,Android Deep Link,我遵循了如何让浏览器到应用重定向工作的说明,但似乎无论我做什么,我都会被引导到带有“未找到项目”屏幕的play store应用 我曾尝试在我正在使用的开发平板电脑上安装该应用程序,希望当我启动调试应用程序时,转到一个网站并忘记调试应用程序,我会被引导回已安装的应用程序 我希望能够在发布前重定向到应用程序的原因是,我可以确保多因素身份验证功能(通过浏览器使用单独的网站)按预期工作。MFA功能首先是应用存在的部分原因,因为它在很大程度上是上述MFA系统的演示 我所尝试的可能吗 舱单: <?xm

我遵循了如何让浏览器到应用重定向工作的说明,但似乎无论我做什么,我都会被引导到带有“未找到项目”屏幕的play store应用

我曾尝试在我正在使用的开发平板电脑上安装该应用程序,希望当我启动调试应用程序时,转到一个网站并忘记调试应用程序,我会被引导回已安装的应用程序

我希望能够在发布前重定向到应用程序的原因是,我可以确保多因素身份验证功能(通过浏览器使用单独的网站)按预期工作。MFA功能首先是应用存在的部分原因,因为它在很大程度上是上述MFA系统的演示

我所尝试的可能吗

舱单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.appname">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true">
        <activity
            android:name=".ui.login.LoginActivity"
            android:label="@string/app_name">
        <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.BROWSABLE" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="customscheme"/>
            </intent-filter>
        </activity>
    </application>
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>
我还注意到logcat中有一个日志:

2019-11-20 10:57:55.828 25127-25233/? E/Volley: [692] bln.a: Unexpected response code 404 for https://android.clients.google.com/fdfe/details?doc=company.appname&nocache_irl=true

使用此配置:

<intent-filter>
 <action android:name="android.intent.action.VIEW"></action>
 <category android:name="android.intent.category.DEFAULT"></category>
 <category android:name="android.intent.category.BROWSABLE"></category>
 <data
   android:host="my.app.com"
   android:path="launch"
   android:scheme="http">
 </data>
</intent-filter>

,系统将提示用户是否要使用应用程序或浏览器打开


有关意向的更多信息,请阅读

谢谢您的回答。你建议在主机上放什么?您想对包名做什么?似乎将包名放在主机字段中并不能解决问题。您的应用程序将被打开。您可以根据自己的要求更改这些值。在这种情况下,您会在浏览器中调用什么来重定向到应用程序?我之所以这样问,是因为我不确定我是否了解您将如何处理此问题,这与另一个线程中发布的标准解决方案不同。感谢您的编辑,@user392117。对于其他可能来到这里的人来说,答案是,在发布之前,您确实无法使用intent系统打开未发布的应用程序(除非您以某种方式覆盖play store查找),您可以使用答案中概述的web链接方法。
<intent-filter>
 <action android:name="android.intent.action.VIEW"></action>
 <category android:name="android.intent.category.DEFAULT"></category>
 <category android:name="android.intent.category.BROWSABLE"></category>
 <data
   android:host="my.app.com"
   android:path="launch"
   android:scheme="http">
 </data>
</intent-filter>