【发布时间】:2020-03-16 00:32:21
【问题描述】:
我按照here 的指示操作,了解如何使浏览器到应用程序重定向正常工作,但似乎无论我做什么,我都会被引导至 Play 商店应用程序,并显示“找不到项目”。-屏幕.
我尝试在我正在使用的开发平板电脑上安装该应用程序,希望当我启动调试应用程序时,转到一个网站并忘记调试应用程序,我会被引导回已安装的应用程序.
我希望能够在发布之前重定向到应用程序的原因是,我可以确保通过浏览器使用单独网站的多因素身份验证功能按预期工作。 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>
尝试重定向回应用程序是:
intent:#Intent;scheme=customscheme;package=company.appname;end
我还注意到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
【问题讨论】:
标签: android android-intent android-manifest android-deep-link