保持应用程序在后台无限制存活(对于Cydia应用程序) [英] Keeping an app alive in background unlimited (for a Cydia app)

查看:221
本文介绍了保持应用程序在后台无限制存活(对于Cydia应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不介意使用私有API或Apple不喜欢的任何类型的东西,但更喜欢快速的解决方案,不像在后台播放沉默或调侃。

I don't mind using private API's or anything of the kind that Apple doesn't like, but would prefer a quick solution that doesn't stuff like playing silence in the background or swizzling.

显然这不适用于应用程序商店所以请不要讲课:)

Obviously this isn't for the app store so please no lecturing :)

那么如何在后台运行而不受任何限制新闻背景?我没有找到答案,除了一些人指向不同的方向,但也许从那以后有人设法挖掘它。

So how do you run in the background without any restrictions like "backgrounder"? I didn't manage to find an answer besides some that point people to different directions, but maybe since then someone managed to dig it up already.

推荐答案

根据你的app的目的,你可以挂钩MobileSubstrate。这将加载SpringBoard并基本上在后台运行。

Depending on what your "app" is going to do, you can hook MobileSubstrate. This will load with SpringBoard and essentially run "in the background".

如果你想编写一个实际的应用程序,那么你也可以写一个动态库,它将由MobileSUbstrate加载SpringBoard。您可以使用 NSNotificationCenter 在此dylib和您的应用之间来回通话;创建和发布通知。

If you want to write an actual application, then you can also write a "Dynamic Library" which will be loaded with SpringBoard by MobileSUbstrate. You can talk back and forth between this dylib and your app by using NSNotificationCenter; creating and posting notifications.

这篇关于保持应用程序在后台无限制存活(对于Cydia应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆