We get location by following API through In-House App, but now that setKeepAliveTimeout was deprecated after iOS 4.0–9.0,
this works only by 2 actions. No regular 15 mins.
- When the App is tapped
- When passing base stations
API
ViewController.m-
(void)startToGetLocation {
//Comment area
locMan = [[CLLocationManager alloc] init];
locMan.delegate = self;
if ([locMan respondsToSelector:@selector(requestAlwaysAuthorization)]) {
[locMan requestAlwaysAuthorization];
} else {
[locMan startMonitoringSignificantLocationChanges];
}
}
- (void)locationManager:(CLLocationManager *)manager
didChangeAuthorizationStatus:(CLAuthorizationStatus)status {
if (status == kCLAuthorizationStatusAuthorizedAlways) {
[locMan startMonitoringSignificantLocationChanges];
}
}
setKeepAliveTimeout:handler: (deprecated)
However, somehow this deprecated API seems restored after iOS 13.4.0 and 13.4.1.
Is this a planned change? If so, from what iOS version?
Is it allowed to keep using this API?
- Our device
OS : iOS 13.4.1
Model : iPhone 7
Network : LTE/Wi-Fi
Your early response would be very much appreciated.