Timer that runs even when app in in the background


Hello All,

I created a simple timer in vanilla js that works fine. The issue I have is that when the app loses focus and goes in the background the timer is thrown out of sequence because it paused when the app lost focus. Is there a way to have the counter still running in the background even when the app loses focus?


i found this: https://github.com/NativeScript/sample-ios-background-execution and this: https://github.com/NativeScript/sample-ios-background-execution.