bizz84 / bizz84/force_update_helper
Update Dialog appears everytime the app comes back in foreground
- Dominant language
- Dart
- Stars
- 50
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
I'm using the package and I really like it - thanks a lot for your work! Currently I'm facing an issue which I did not yet recognize (not sure if it wasnt there or if I did something wrong). When my app goes into background and comes back into foreground the dialog is triggered every time. Even if I set to allowCancel false. It is triggered for every route, so no matter where I'm currently in the app, the dialog is showing up. Is there any way to prevent the dialog from showing up after it showed up once? I could set a specific value in the shared prefs for the day and check if it has been shown already today but there might also be another solution which I'm not aware of?
It can easily reproduced just changing the app and coming back to it.
Flutter Version: 3.32.3
Package Version: 0.2.1
Tested on Android only so far.
Thanks in advance!
Verry
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test entry point is named. Reproduce on Android by backgrounding and foregrounding the app, then trace the Flutter app-lifecycle handling that triggers the update dialog across routes. Done means the dialog does not recur after it has already been shown, including when allowCancel is false.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100