iPhone Background App in Ad-hoc distribution?

雨燕双飞 提交于 2019-12-23 07:02:30

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/1624080/iphone-background-app-in-ad-hoc-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!