Forum Xamarin.iOS

Device.Timer still runs in the background (after OnSleep)

OdyseeOdysee Member ✭✭

I realised this first when debugging my app on the ios13 for the first time BUT it behaves the same way for 10, 11 and 12, just doesn't work the same way with debugger.

I can't find anything about this "bug" in the documents. I want it to behave the same way as on Android i.e. OnSleep freeze everything on the App.

Some guidence on the subject. The App has a lot for timers running.

Yours T.


  • jezhjezh Member, Xamarin Team Xamurai

    Well, IOS system has backgrounding task . From iOS Backgrounding with Tasks,we will find:

    But Tasks are under a strict time limit, and typically get about 600 seconds (10 minutes) of processing time after an application has moved to the background on iOS 6, and less than 10 minutes on iOS 7+.

    So, even if you go back to the desktop(OnSleep() is running. ), some tasks will run in the background for a while.

  • jezhjezh Member, Xamarin Team Xamurai

    @Odysee Have you resolved your question?

Sign In or Register to comment.