0

can anybody help me with getting device location even when the app is terminated. I know how to get location when app is in background. But I am still not able to get it when app is closed/terminated by user.

Thanks, Nilesh

Nilesh
  • 438
  • 5
  • 15
  • could you please tell me how to get location when app is in background? as you told in your question. Thanks – vky Dec 19 '17 at 09:11

3 Answers3

4

Kindly refer http://mobileoop.com/getting-location-updates-for-ios-7-and-8-when-the-app-is-killedterminatedsuspended I have not tested the same. But you can give a try.

Ashwin P
  • 501
  • 1
  • 3
  • 19
1

kindly refer to these pages. it can be done using

[[LocationController sharedInstance] startMonitoringSignificantLocationChanges];

1) recieving location updates after app is terminated

2.) iOS update location even when app is terminated

3.) http://mobileoop.com/getting-location-updates-for-ios-7-and-8-when-the-app-is-killedterminatedsuspended

Community
  • 1
  • 1
Parv Bhasker
  • 1,773
  • 1
  • 20
  • 39
-1

Once application got terminated from background, There is no way to retrieve the location continuously.

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40