flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

Black background after minimizing and expanding the app

Open Holofox opened this issue 6 years ago • 8 comments

🐛 Bug Report

If you call a dialog with a request for permissions and minimize the application, having previously opened it again, then the dialog will have a black background.

Expected behavior

After returning to the application again, the UI should render correctly.

Reproduction steps

You can view the reproduction of the bug here: https://github.com/flutter/flutter/issues/58002

Configuration

Version: 5.0.1+1

Platform:

  • [ ] :iphone: iOS
  • [x] :robot: Android

Holofox avatar Aug 11 '20 13:08 Holofox

I can confirm the issue, this happens to me with an In-App billing dialog from google.

pinpong avatar Aug 14 '20 06:08 pinpong

I have same issues on LocationPermissions dialog

psycura avatar Sep 10 '20 07:09 psycura

Any updates?

psycura avatar Sep 16 '20 07:09 psycura

Is happening to me now, anyone with the fix?

aloev avatar Sep 22 '20 15:09 aloev

I faced the same issue when doing the following

  • Open App-Settings with openAppSettings()
  • Do some permission changes
  • Navigate to my App --> The App hangs in the Splash-Screen

When doing the above without changing any permisskions it semms to be working.

ReveredMachine avatar Nov 04 '20 12:11 ReveredMachine

I have the same problem, the state of the lock screen also occurs.

DOMO-Liu avatar Dec 23 '20 02:12 DOMO-Liu

UPD.

I realised, I should have posted the report in the flutter repo since it's related to official share plugin. And I'm not sure if my report is related to this issue.

I'll leave the link for the reference https://github.com/flutter/flutter/issues/74801

ildarsharafutdinov avatar Jan 27 '21 06:01 ildarsharafutdinov

This is not a permission handler bug, this looks like a bug in flutter or Android it self.

I tested this using the standard incremental counter app and using different packages that were able to request a permission. When the permission dialog showed up, I pressed the 'menu' button, putitng the app in the background, and re-opened the app. With every package I tested it with the screen turned black. The link provided by @ildarsharafutdinov shows a nice and simple solution to fix this problem.

This issue will be closed for now, if you still have questions regarding this problem please feel free to start a new issue.

JDDV avatar Jan 13 '22 13:01 JDDV