0

Is there any way in latest iOS to initiate location capture at a particular time each day (say morning and evening ), even if the app is in background or not running.

mbasheerk
  • 47
  • 6

1 Answers1

0

You should read Background execution. Background jobs are actually not recommended:

An app might move to the background because the user launched a different app or because the user locked the device and is not using it right now. In both situations, the user is signaling that your app does not need to be doing any meaningful work right now. Continuing to run in such conditions will only drain the device’s battery and might lead the user to force quit your app altogether.

As for getting user location check this answer How can I get current location from user in iOS

Community
  • 1
  • 1
Bretsko
  • 608
  • 2
  • 7
  • 20