bgs-core icon indicating copy to clipboard operation
bgs-core copied to clipboard

How to stop a Countdown when the App is backgrounded (Xamarin forms)

Open dr1sshamra opened this issue 7 years ago • 2 comments

Hello everyone, i develop a Quizz App , i used Device.StartTimer to run my countdown and its works fine, also i added Sounds for the countdown, the problem is when The App is Backgrounded, the Countdown and the sounds still running. thats leading the app to be crashed. Any solution to stop the countdown/sounds on sleeps mode ? Sorry for bad english.

dr1sshamra avatar Feb 17 '18 15:02 dr1sshamra

Is this a Xamarin forms question?

I wouldn't expect this library to work with Xamarin forms

Red-Folder avatar Feb 19 '18 14:02 Red-Folder

Yes !! it is . and it works good !! i just need to stop the countdown when the app is backgrounded !

dr1sshamra avatar Feb 22 '18 17:02 dr1sshamra