Is there a way in the background to get a notification about my application when CMMotionActivity changes?

I would like to know if the system can wake the application in the background if CMMotionActivity changes, for example, if the user starts walking / running after sitting, I would like to execute some code and schedule a local notification.

Is there any way to ask the system to wake my application in the background?

EDIT: looking at the reference , this is not possible ("[...] and no updates were delivered while your application is paused.") , But maybe there is another way?

+5
source share

Source: https://habr.com/ru/post/1210297/


All Articles