flutter_ali_auth icon indicating copy to clipboard operation
flutter_ali_auth copied to clipboard

关于多次提及的弹窗和全屏的问题汇总

Open CodeGather opened this issue 2 years ago • 0 comments

该问题看到有多位小伙伴提及,在此做一下说明,其他于此相关的issues不另行回复

关键配置步骤

1、设置AliAuthModel配置参数 isDialog -> true|false 弹窗 | 全屏

2、设置模式的主题样式

1、插件demo的配置路径: example/android/app/src/main/AndroidManifest.xml 2、对应的APP路径应该为:android/app/src/main/AndroidManifest.xml 3、弹窗主题 android:theme="@style/authsdk_activity_dialog" 4、全屏主题 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 5、弹窗代码如下, 需要全屏时请替换下面配置中的 android:theme 参数

    <!--协议页面webview-->
    <activity
        android:name="com.mobile.auth.gatewayauth.activity.AuthWebVeiwActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        tools:replace="android:theme"
        android:exported="false"
        android:launchMode="singleTop"
        android:screenOrientation="behind"
        android:theme="@style/authsdk_activity_dialog" />

    <!--联通电信授权页-->
    <activity
        android:name="com.mobile.auth.gatewayauth.LoginAuthActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        tools:replace="android:configChanges"
        android:exported="false"
        android:launchMode="singleTop"
        android:screenOrientation="behind"
        android:theme="@style/authsdk_activity_dialog"/>

    <!--移动授权页-->
    <activity
        android:name="com.cmic.sso.sdk.activity.LoginAuthActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        tools:replace="android:configChanges"
        android:exported="false"
        android:launchMode="singleTask"
        android:screenOrientation="behind"
        android:theme="@style/authsdk_activity_dialog" />

#61

CodeGather avatar Mar 05 '22 10:03 CodeGather