-
Notifications
You must be signed in to change notification settings - Fork 19
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
White or black screen before app go's to recent #6
Comments
Ah yes, good idea. Will give it a look. |
Right now this package only uses Dart code. I can't see a way of achieving this without adding in method channels as after the Flutter application lifecycle enters an inactive or paused state it won't call build methods until it's resumed again. It's a trade off I'm going to have to consider. |
Just revisited this, not sure when it was introduced or if I even checked how possible this was way back when but it looks like this is now possible..! Will add this in to the API |
Good news!
The conditions which need to be met for the inactive screen to be shown are:
You can see tests confirming this behaviour here. Less good news is that the Android behaviour isn't consistent with iOS... On Android, if you press the home button and then view the app switcher, the app before the inactive screen is shown.
I'll keep monitoring this issue, your milage may vary. My testing on Android was on a Pixel 4 emulator running Android 14 (build UPB1.230309.013). |
Just an additional comment regarding a scenario where the app is unlocked and the device itself is locked (i.e. power button pressed / screen timeout). |
Hey can we have feature where white or black screen before app go's to recent or stay in recent .
you can check this app, it has this feature.
https://play.google.com/store/apps/details?id=ru.alexandermalikov.protectednotes
thanx for this lib
The text was updated successfully, but these errors were encountered: