Does Device.StartTimer affect the phone battery and does it work in the background of iOS?

DwightHydeDwightHyde USMember ✭✭
edited November 2017 in Xamarin.Forms

I use the following Device.StartTimer(TimeSpan.FromSeconds(30), IsActivityTimerReset); in our Xamarin forms app. It's my understanding that when an app is put into the background on Android that the timer still runs, BUT when an app is put into the background on iOS the timer will stop running. Is that correct? Also when it runs in the background how much of a "hit" is it on the phone's battery. Probably hard to tell but all the call does is confirm the user is still logged in and if not it re-authenticates the user. It's basically a keep me logged in feature. Thanks for any information you can provide.

Best Answer


  • DwightHydeDwightHyde USMember ✭✭

    Thank you @seanyda for the clarifications!

Sign In or Register to comment.