Skip to content

[Android][v10.0.0] Crash: IllegalStateException: Reply already submitted after failed biometric retry "AndroidOptions.biometric(enforceBiometrics: true)" #1059

@tanawat2542

Description

@tanawat2542

Summary

On Android with flutter_secure_storage v10.0.0, using biometric-enforced options can crash the app when:

  1. biometric auth fails once, then
  2. user retries in the same prompt.

The app crashes with:
java.lang.IllegalStateException: Reply already submitted

Environment

  • flutter_secure_storage: 10.0.0
  • Flutter: 3.29.2
  • Dart: 3.7.x
  • Platform: Android
  • Device observed: Xiaomi 2201117SG (MIUI / Android 13+)
  • Config:
const FlutterSecureStorage(
  aOptions: AndroidOptions.biometric(
    enforceBiometrics: true,
    biometricPromptTitle: 'Authenticate to access',
    biometricPromptSubtitle:
        'Use biometrics or device credentials (Device PIN/Pattern/Password)',
  ),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions