Problem:
I want to run specific code at specific clock time even if the application is background state.
Approach Tried:
- I tried using NSTimer but the NSTimer pauses when the application enters the background state.
- I am not using the "Background Fetch" approach, as there will be long time before I want the code to execute.
I have seen an third party iOS alarm application which starts playing music when alarm goes off. Per my research, there is no way you can schedule a task in iOS (like Android). I want to know the workaround solution to implement such functionality.
I would appreciate any suggestions and thoughts on this topic. Thank you.