iphone - 越狱的iOS : how resume(in foreground) from background

标签 iphone ios background jailbreak foreground

我有问题。我需要解决这个越狱iOS问题。我的应用程序在后台模式下运行。我希望该应用程序在发生一些事件后从后台进入前台模式。 我尝试了下一条指令:

system([[NSString stringWithFormat:@"uiopen \"%@\"", @"appname://"] UTF8String])

但是应用程序没有从后台运行。应用程序作为新进程运行。 谢谢。

最佳答案

用户私有(private)API:

   int SBSLaunchApplicationWithIdentifier(CFStringRef displayIdentifier, Boolean suspended);

它是在 SpringboardServices 私有(private)框架中定义的。

您需要添加权利“com.apple.springboard.launchapplications”才能使其正常工作。

关于iphone - 越狱的iOS : how resume(in foreground) from background,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18303238/

相关文章:

ios - PDFTron:带有自定义图像的 PTFileAttachment 未显示

html - css 背景颜色在 Firefox 中不起作用

iphone - iPad 中的推送通知未出现在“设置”中

javascript - 如何在移动网络应用程序(Android 浏览器/iOS-Mobile Safari)上禁用横向/纵向切换

iphone - IOS:在父 View 上移动 subview

iphone - 如何在ios中连接点、画线和删除线?

ios - 解析 Messenger 聊天 Swift : Messages are out of order

ios - NSURLSession中dataTask和uploadTask的区别

css - 具有图像和扩展渐变的背景的无效 CSS 属性值

css - 如何实现视口(viewport)大小的背景图像