(amplify-kotlin)无法重定向到自定义URL方案

时间:2020-02-17 08:24:05

标签: amazon-web-services kotlin

我正在尝试集成Amplify联合身份验证机制,但没有成功。按照AWS网站文档中指定的说明进行操作。

以下是意图配置:

    <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">
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="federatedidentity" />
        </intent-filter>
    </activity></application>  

应用程序启动AWS托管的UI页面,但无法重定向到本机应用程序。在调试浏览器窗口(托管用户界面)时,我看到以下警告:

导航无法访问:federatedidentity:// callback?code = auth-code-here

有人可以帮忙吗?

0 个答案:

没有答案