Repository: flutter
Issue: [local_auth][Android] authenticate does not prompt again when app comes to foreground from background without authenticating for android>=12
Labels: platform-android,p: local_auth,package,e: OS-version specific,has reproducible steps,P2,found in release: 3.7,found in release: 3.10,team-android,triaged-android

### Is there an existing issue for this?

- [ ] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [ ] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

Problem Description : For Android version>=12 when authenticate is called, if the app goes in background without authenticating and then app comes to foreground from background, the authenticate prompt is not shown again and allows the user to enter the app without authentication. 

NOTE: Everything is working fine for android 11 and below. This issue is not faced there. 

### Expected results

If the user has not authenticated and app goes in background, when it resumes authenticate prompt should appear and allow user to enter app only on authenticating himself/herself. 

### Actual results

Allows user to enter the app without authenticating once when app resumes from background.

### Code sample

code depicting the issue for android>=12

https://github.com/Tanyaa-18/prac_app



### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output


[√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.22621.1413], locale en-IN)
    • Flutter version 3.7.12 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (3 days ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\tanishq\AppData\Local\Android\sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.77.3)
    • VS Code at C:\Users\tanishq\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.62.0

[√] Connected device (5 available)
    • AC2001 (mobile)              • cac290d7      • android-arm64  • Android 11 (API 30)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.1413]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 112.0.5615.122
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 110.0.1587.69

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.