临时分发中的 iPhone 后台应用程序? [英] iPhone Background App in Ad-hoc distribution?

查看:27
本文介绍了临时分发中的 iPhone 后台应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够确保 iphone 始终连接到网络.如果它失去接收,我需要能够警告用户.由于我认为此工作的唯一方法是使用后台进程,因此可以使用私有 API,以便应用程序可以在后台运行.

I need to be able to ensure that the iphone is always connected to a network. If it loses reception I need to be able to warn the user. Since the only way I see this working is using a background process is it possible to use private APIs so that the app can run in the background.

我知道它可以用越狱手机完成,但我宁愿不越狱手机.

I know it can be done with Jailbroken phones but I would rather not Jailbreak the phones.

推荐答案

如果您的意思是在运行应用程序时出现此行为;查看Reachability 示例.

If you mean having this behavior while running an app; check out the Reachability sample.

如果您的意思是在不运行应用程序时有此行为;查看 Android.

If you mean having this behavior while not running an app; check out Android.

这篇关于临时分发中的 iPhone 后台应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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