测量蜂窝信号强度 [英] Measuring cellular signal strength
问题描述
我正在开发iOS版的非appstore应用程式。我想在我的代码中读取蜂窝信号强度。
I am developing a non-appstore app for iOS. I want to read the cellular signal strength in my code.
我知道苹果没有提供任何API,我们可以实现这一点。
I know Apple doesn't provide any API by which we can achieve this.
有没有可以用来实现这个的私人API?
Is there any private API that can be used to achieve this? I have gone through the various threads regarding this issue but could not find any relevant info.
这是完全可能的,因为有一个在应用商店中使用来检测运营商的信号强度。
It is completely possible because there is an app in the app-store for detecting the carrier's signal strength.
推荐答案
我简要地看了一下位于 Github 的VAFieldTest项目。
I briefly looked at the VAFieldTest project located at Github.
在类/类库中似乎有 getSignalStrength()
和 register_notification()
VAFieldTestViewController.m可能对你感兴趣,因为他们调用 CoreTelephony.framework
。
There seems to be getSignalStrength()
and register_notification()
functions in Classes/VAFieldTestViewController.m that might be interesting to you as they call into CoreTelephony.framework
.
我非常相信一些使用的调用在来自Apple的CoreTelephony框架文档,因此为私有 - AppStore中的任何应用程序必须已通过检查。
I am pretty confident that some of the used calls are undocumented in the CoreTelephony framework documentation from Apple and therefore private - any app in the AppStore must have slipped passed inspection.
这篇关于测量蜂窝信号强度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!