1

I am working on app which require location tracking of customer even app is killed. I have to get location of customer even customers app is killed. Is think it is possible to track location using significant-change location service.

The significant-location change is working perfectly am getting location updates in delegate

- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{

 }

I have to update to server when location update is happen.

- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{
  Can i call API Like other api calls
 }

Is it possible to call API form this delegate or anything else to do ? Any help appriciated. Thanks

Rinto Andrews
  • 60
  • 1
  • 9

1 Answers1

0

after several test . i have checked web server data base. i found that location is updated. so it means that its possible to call api web even app is killed

Rinto Andrews
  • 60
  • 1
  • 9
  • 1
    I don't think so it is possible in kill mode, as apple not accept your application, if you do this then please share your code, so community can use it – Bhavesh Dhaduk Jul 04 '19 at 12:42
  • it works with the help of significant location tracking feature in ios. – Rinto Andrews Jul 27 '19 at 05:46
  • @Rinto Andrews, can you please share an example code on how to achieve this? Currently we are facing the same issue when app in killed state it is not calling the API. – Naresh Aug 06 '21 at 06:28
  • @ Bhavesh Dhaduk, have you got any solution to call API when app is in a killed state based on location? – Naresh Aug 06 '21 at 06:30
  • it was working long back with significant location changes feature, not test recently. so i don't know. – Rinto Andrews Sep 19 '21 at 18:00