Application showing ANR(App Not Responding) #1431
Labels
status: closed (missing info)
Indicates the issue was automatically closed due to a lack of information.
status: needs more info
We need more information before we can continue work on this issue.
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
When location permission is granted, the app displays a "Too much work on the main thread" message and triggers an ANR (App Not Responding) popup. However, the app functions properly when location permission is denied.
Expected results
If location permissions are granted, then want to an application will function properly.
Actual results
When location permission is granted, the app displays a "Too much work on the main thread" message and triggers an ANR (App Not Responding) popup. However, the app functions properly when location permission is denied.
Code sample
#AndroidManifest.xml
#Location permission request code
await permission.Permission.locationAlways.request().isGranted ||
await permission.Permission.locationWhenInUse.request().isGranted ||
await permission.Permission.location.request().isGranted
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
permission_handler: ^11.3.1
Flutter Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.5 23F79 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.96.4)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered: