Skip to content

[local_auth][iOS] useErrorDialogs= false still shows system dialog when locked out by system #117810

@felixfok-dh

Description

@felixfok-dh

I'm doing and custom UI for error popup of FaceID. However, even I had set useErrorDialogs = false for get the error code instead default popup, it's still not working of lockout case.

my code was as same as the README.md of local_auth but adding bioTmetricOnly = true in option,

final bool didAuthenticate = await auth.authenticate(
          localizedReason: 'Please authenticate to show account balance',
          options: const AuthenticationOptions(useErrorDialogs: false,  bioTmetricOnly = true));
      // ···
    } on PlatformException catch (e) {
      if (e.code == auth_error.notAvailable) {
        // Add handling of no hardware here.
      } else if (e.code == auth_error.notEnrolled) {
        // ...
      } else {
        // ...
      }
    }

Metadata

Metadata

Labels

P2Important issues not at the top of the work listfound in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: local_authPlugin for local authentificationpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions