iPhone 后台应用程序在临时分发中?
我需要能够确保 Pphone 始终连接到网络。如果它失去了接收能力,我需要能够警告用户。由于我看到此工作的唯一方法是使用后台进程,因此可以使用私有 API 以便应用程序可以在后台运行。
我知道可以使用越狱手机来完成此操作,但我宁愿不越狱手机。
I need to be able to ensure that the Pphone 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的意思是在运行应用程序时出现这种行为;查看可达性示例。
如果您的意思是在不运行应用程序时出现此行为;查看 Android。
If you mean having this behavior while running an app; check out the Reachability sample.
If you mean having this behavior while not running an app; check out Android.
目前无法运行后台进程。
当手机连接到网络时,您可以向手机发送通知,但显然无法在断开网络时发送通知。
There is currently no way to run a background process.
You can send notifications to the phone while it is connected to a network, but obviously there is no way to send a notification when it is disconnected.