Scheduled, background process

On WatchOS, there is a notification that seems to go off about ten minutes until the hour that reminds you to stand up and move around some. I know we can schedule local notifications, but when the notification is triggered how is Apple checking if they actually need to present the notification or not? For example, if I have stood in the past hour and moved around, there's no need to show me the notification at 10 minutes until the hour.


My app runs on iOS. Reaching a goal is dependent on a user's last known action and the time elapsed since that last action. Currently, the user can launch my app and logic will be run to let them know their progress in reaching their goal. What I would like is the ability to run this logic in the background while the app is backgrounded (or even if it is killed). The end result for the user would be their iPhone is in their pocket and my app notifies them when the goal has been reached.


There is not a server component to my app. I am aware of things like region monitoring, monitoring significant location updates, and background reetch requests to a server that wake the app to perform actions, but to use them for my purpose seems kind of a hack (and potentially unnecessarily draining on the battery).


Am I missing an easy way to do this? or should I file a radar feature request? Suggestions?


Thanks for any help or feedback.


Dan

There's no API on iOS that will run your app code at any specific schedule in the background. It sounds like you've considered all the options. I think you'll have to submit a feature request describing your use case and hope for the best in a future iOS version.


I suspect the problem with any such API is that some developers would abuse the heck out of it, running continuously in the background and destroying battery life. And of course Apple would get blamed. But if they could figure a way to prevent abuse somehow, it certainly would be useful for many cases.

I think there is a way now to schedule background processes.

Scheduled, background process
 
 
Q