i want to hide button for specific time when user tapped on button, and the button show when time is completed, even app in foreground or background
Asked
Active
Viewed 72 times
0
-
You can try this solution https://stackoverflow.com/questions/59480124/how-to-run-clock-timer-in-background-on-flutter – Moïse Rajesearison Jan 16 '23 at 13:58
-
i tried but not full fill my scenario, basically i have multiple medicine and one button thats name is "take medicine" when user tapped on this button this button hide according to time but in others medicine this button show until take medicine – Rafhan Chaudhary Jan 16 '23 at 17:19
1 Answers
0
the ultimate solution is to use foreground services, and with android, it comes with a sticky notification to prevent the system from killing the app.

Rami Al Debs
- 111
- 5