简体   繁体   English

如何从iphone获得信号强度并在App Store中发布应用程序?

[英]How to get signal strength from iphone and to publish the app in the App Store?

Is there any way to get the quality of the signal from an iphone? 有没有办法从iPhone获得信号的质量? I know that i can get this data from CoreTelephony framework, but it is an private framework and Not permitted such frameworks in the app store. 我知道我可以从CoreTelephony框架获取这些数据,但它是一个私有框架,不允许在app store中使用这样的框架。

Someone can help me? 有人可以帮帮我吗?

Thanks for all. 谢谢大家。

Best regards 最好的祝福

You cannot currently get access to this information via a public api. 您目前无法通过公共API访问此信息。 Apple provides some sample code for checking if there is an internet connection and if the device is on wifi/cellular amongst other things. Apple提供了一些示例代码,用于检查是否存在互联网连接,以及设备是否处于wifi /蜂窝状态等。 This is available at: 可在以下位置获得:

https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html

You could also try something really hacky like taking a screenshot and doing some image analysis on the top left corner of the screen to determine how many bars there are, if you're really keen..? 您还可以尝试一些非常黑客的东西,例如截取屏幕截图并在屏幕左上角进行一些图像分析,以确定有多少条,如果您真的很热衷......?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM