-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android app in debug mode gets stuck on splash screen after revoking permission #148228
Comments
@guperini |
Sure I can @AbdeMohlbi. It appears in all android devices I tested. It also happens if the permission is set using a package to ask permission when running the app. And it happens not only using read contacts permission, but others like camera permission happens the same way. Sample code: |
@guperini [√] Flutter (Channel master, 3.22.0-31.0.pre.26, on Microsoft Windows [version 10.0.19045.4239], locale en-US)
• Flutter version 3.22.0-31.0.pre.26 on channel master at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 125543505d (4 hours ago), 2024-05-13 08:48:56 -0700
• Engine revision 0050bf9a80
• Dart version 3.5.0 (build 3.5.0-148.0.dev)
• DevTools version 2.36.0-dev.5 this happens only in debug mode and when this happens app does lost connection (simular to when switching to dark mode sometimes ) |
Yes @AbdeMohlbi . I confirm. It only happens in debug mode. I didn´t see that before. That´s greate news. Thank you!!! |
Thanks for the report @guperini |
It doesn't happen using a native android app in debug mode. It's probably a Flutter issue. |
Thanks for the update. I was able to replicate this on S10. While granting and revoking the permissions, the app seems to be quitting and throws below in the console log and hence it could be getting stuck at splash screen.
stable, master flutter doctor -v
|
Steps to reproduce
Steps to reproduce:
1 - Create a new Flutter project.
2 - Add the following permission to the Android manifest:
android.permission.READ_CONTACT
3 - Run the application.
4 - Navigate to the Android settings, approve the Contacts permission, and then revoke it.
5 - Return to the app.
Expected results
App should restart.
Actual results
Stuck in the splash screen.
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: