Biometri c Auth во флаттере - PullRequest
0 голосов
/ 05 мая 2020

В IOS нормально. FaceId работает. Но в Android отпечаток пальца не работает. Ошибка: I / flutter (19430): [BiometricType.fingerprint] I / flutter (19430): PlatformException (no_fragment_activity, плагин local_auth требует, чтобы активность была FragmentActivity., Null). В моем коде нет MainActivity. java. Встраивается ниже

My AndroidManifest. xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="io.flutter.examples.test">

    <!-- The INTERNET permission is required for development. Specifically,
         flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
    <uses-permission android:name="android.permission.USE_BIOMETRIC"/>

    <application android:label="AY">
        <activity android:name="io.flutter.embedding.android.FlutterActivity"
                  android:theme="@android:style/Theme.Black.NoTitleBar"
                  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
                  android:hardwareAccelerated="true"
                  android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
   <!-- Don't delete the meta-data below.
        This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>
...