0

I am new to swift. Here is the following thing I am trying.

Track the location and motion status of the user in the background. When user's motion status goes from walking to running I want to track the location. And when the app comes to foreground I want to pin the tracked location where the user started running from walking.

It works fine when the app is in foreground entire time. But it does not work when the app is in background.

How shall I implement the code for the logic to be executed in the background?

Location service in the background:

enter image description here

Subhransu Mishra
  • 3,035
  • 11
  • 40
  • 47

0 Answers0