[英]How to use cellular/wifi network on my iphone application?
I develop radio streaming iphone app. 我开发了广播流媒体iPhone应用程序。
I submitted it to app store, but rejected. 我将其提交到应用商店,但被拒绝了。
Because my app could not access streaming server. 因为我的应用无法访问流服务器。
(at this moment, I wonder why did my app plays on my iphone when I tested it) (此刻,我想知道为什么我在测试时我的应用程序为何能在iphone上播放)
After searching through internet, I found that I missed two plist propertys. 通过互联网搜索后,我发现我错过了两个plist属性。
That are "Application uses WiFi" and "Required device capabilities". 即“应用程序使用WiFi”和“必需的设备功能”。
So, could I conclude that If I want to play the radio streaming via streaming server, then I must explicitely notify my app's plist to use WiFi? 因此,我是否可以得出结论, 如果我想通过流服务器播放广播流,那么我必须明确通知我的应用的plist使用WiFi?
Is this right? 这是正确的吗?
Additionally How to send & receive network data via cellular networK? 另外,如何通过蜂窝网络发送和接收网络数据?
Just nothing to do? 没事做吗? Or Anything to change(like WiFi)? 还是有什么需要改变的(例如WiFi)?
Please help me. 请帮我。
Thanks in advance. 提前致谢。
First, You should test whether your libraries are correctly linked to your app. 首先,您应该测试您的库是否正确链接到您的应用程序。
And If you use wifi on your Iphone, then you should explicitely add your app's functionality(the use of wifi) in your plist. 而且,如果您在Iphone上使用wifi,则应在plist中明确添加应用程序的功能(使用wifi)。 "Application uses WiFi", "Required device capabilities". “应用程序使用WiFi”,“必需的设备功能”。
I recommend that your Iphone have reachability. 我建议您的Iphone具有可达性。 If user use your app on celluar network, your app should acknowledge user to your app is using cellular network. 如果用户在蜂窝网络上使用您的应用程序,则您的应用程序应确认用户正在使用蜂窝网络。 The app store guide user to use reachabilty. 应用商店指导用户使用可达性。
So I recommend it! 所以我推荐!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.