I start the countdown with 10 seconds, then lock the screen or go to background. When the onComplete function of the countdown is triggered I have a function that use the method restart(duration: 15) of the controller of the countdown. The problem is that the countdown only get restarted when I open the app again, it doesn't get restarted in backgound or with the screen locked.
I start the countdown with 10 seconds, then lock the screen or go to background. When the
onCompletefunction of the countdown is triggered I have a function that use the methodrestart(duration: 15)of the controller of the countdown. The problem is that the countdown only get restarted when I open the app again, it doesn't get restarted in backgound or with the screen locked.