Device.StartTimer stop working in background for xamarin ios.

BhautikBhautik Member ✭✭✭
edited February 15 in Xamarin.iOS

Hello,

Device.StartTimer stop working when application is in sleep mode.so how we can continue timer in sleep mode.Below is my code.

    Device.StartTimer(TimeSpan.FromSeconds(5), () =>
    {
    Console.WriteLine("Hello");
return true;
    });

Answers

Sign In or Register to comment.