CoreMotion updates in background state

前端 未结 5 1873
迷失自我
迷失自我 2020-12-02 06:57

With the M7 chip in the latest iOS devices one can get programmatically notified as the user goes from stationary to running, walking, etc using CMMotionActivityManager. Sta

5条回答
  •  渐次进展
    2020-12-02 07:31

    First, check if you have set up the background behave of your app.

    Go to target - capabilities section and check Background mode for location updates.

    XCode Capabilities

提交回复
热议问题