Forum Xamarin.Android

Timer doesn't working well in sleep mode

AlexRodAlexRod BRMember ✭✭

Hi everyone, i currently have a problem with my timer. It works well when the screen is on, or if the screen if off (sleep mode) but the charger is connected (i.e., the device is charging battery). But when i press the power button and the device isn't charging, the timer suffer a delay. For example, i put 5 minutes, turn off the screen with power button and after 8 minutes passed, when i turned it on again the timer was in 3 minutes yet... Someone has any ideia of how to solve it? I already implemented a Bound Service to run it, and try to implement PowerManager without luck...

Sign In or Register to comment.