setKeepAliveTimeout has been restored?

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)


https://developer.apple.com/documentation/uikit/uiapplication/1622989-setkeepalivetimeout?language=objc




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.

-setKeepAliveTimeout:
is intimately tied to the legacy VoIP architecture. You should not be using that today. It never worked in the first place well and is unavailable to apps that use modern tools (see QA1938 iOS 10 and the Legacy VoIP Architecture).

Are you building a VoIP app? Or using it for some other purpose? And if so, what is that purpose?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
setKeepAliveTimeout has been restored?
 
 
Q