I'm trying to create countdown timer where I keep track off the session when it starts. I'm using the timer when the app is in background it runs fine but when the app is in background and the screen is locked the timer does not work properly.
I know a method where when the app is paused stops the timer & save the time and when is resumed the calculate the time according. But if the user destroys the app when it's in background then what should I do since I'm not good in native development(still learning native development).
please help me. Thank you.