Skip to content
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

change app icon need delay above one minute and app background in Android #4

Open
charles0122 opened this issue May 3, 2024 · 9 comments

Comments

@charles0122
Copy link

image
after one minute

image

flutter sdk: 3.19.6
dev OS: windows11
If you don't let the app run in the background, the modification won't be triggered

@charles0122
Copy link
Author

image
image

@charles0122
Copy link
Author

I also tried executing with the example of main, the same result

@chandrabezzo
Copy link
Owner

Yes @charles0122 this plugin will be triggered if you close the app. I implement this approach to minimize bad user experience to our application because the app will force closed and need to reopen again by user manually.

@shixiwen000
Copy link

Yes @charles0122 this plugin will be triggered if you close the app. I implement this approach to minimize bad user experience to our application because the app will force closed and need to reopen again by user manually.

It will be nice if it is controllable.

@chandrabezzo
Copy link
Owner

chandrabezzo commented Jul 6, 2024

Hi @shixiwen000 can you describe about controllable? Like triggerring any button we can change the app icon?

@LouisRaverdy
Copy link

Hello, I have the same issue, on android the icon only change when the app is fully closed (not on background). If I understand well, this is wanted, but what you you mean by "minimize bad user experience" ? And is this possible to have the choice for changing the icon immediately ?

Thanks !

@charles0122
Copy link
Author

@LouisRaverdy I think "minimize bad user experience" means that after the user switches the icon, they don't have to force the app to restart, but rather make the change naturally, such as the next time they open the app. Maybe you can prompt the user that the icon change will take effect the next time they start the app. If forced changes are required, I think there should be a configuration item

@charles0122
Copy link
Author

@LouisRaverdy Even if there is no project that provides configuration for forced restart, you can also write your own prompt to the user to change the operation and restart the app, and then write your own restart app logic

@LouisRaverdy
Copy link

Okay thanks I'll implement that ! Actually, there are 2 big issues with the Android version, I fixed them in my fork but It's wired that nobody noticed them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants