I am creating a jailbreak trick that involves calling from the lock screen. I am currently using [[%c(SKTelephonyController) sharedInstance] dialNumber:number] to call a number.
Everything works fine, and the call passes until you try to make a call when there is an open application. For example, if you leave the application open and lock the phone without closing the application, SpringBoard will crash when you try to make a call. If there is no open application, the call works fine and there is no failure.
Is there a way to temporarily pause the application?
I have already reviewed [[%c(UIApplication) sharedApplication] _killThermallyActiveApplication]; , but the selector is not recognized, although it is found in private headers. I also tried [application disableContextHostingForRequester:@"LaunchSuspend"] , which also does not work.
I am trying to deactivate the application before making a phone call, but after two days of searching through the headers I cannot do this.
Any help is appreciated.
source share