I don’t want to derail the discussion, but I see a ton of topics with this same overall goal, and my first instinct is to always think like a user.
Mobile OSes exist in sort of a hybrid land between embedded and desktop systems, and while technology like Ionic allows developers to really embrace the notion that one can deploy virtually the same codebase to mobile and desktop, we have to also keep in mind that we need to be good citizens of the mobile environment.
Which includes the fact that battery life is precious, and asleep means asleep. Having applications be constantly waking the device in spite of user power management preferences is IMHO a very consequential rudeness. So unless we are developing an app that will only be deployed in environments where power management is categorically a non-issue, I think it is incumbent on us as developers for moral reasons not to even attempt technological circumvention of task scheduling.
If you can use push notifications to achieve your overall goal, I think that would be a substantially better route to take.