简体   繁体   English

iPhone 3G数据网络超时?

[英]iphone 3G data network timeout?

My iPhone app sends data persistently over the network, and can handle having the network completely unavailable for a time. 我的iPhone应用程序通过网络持续发送数据,并且可以处理一段时间完全不可用的网络。 However I do my dev on an ipod and have difficulty testing 3G connectivity issues; 但是,我的开发工作是在iPod上进行的,因此很难测试3G连接问题。 My question: is there period of non-connectivity, while an app is in the foreground, after which the iphone will stop checking for the network, such that there are no bars and reachability returns 0 until the user "wakes" the phone, eg by locking/unlocking? 我的问题是:在应用程序处于前台状态时是否存在一段时间的非连接性,此后iphone会停止检查网络,以至于没有限制,可达性会返回0,直到用户“唤醒”电话为止,例如通过锁定/解锁? Or can eg 1 hr without data network pass and the iphone will recognize that the network is back and reachability will start returning true (I am polling every 1 minute while there is not connection to my server). 或者例如可以在没有数据网络通过的情况下1个小时,并且iphone会识别出网络已恢复并且可达性将开始返回true(我每隔1分钟轮询一次,而没有连接到服务器)。

This is my experience with wifi: if, while running my app, the ipod hasn't connected to a wifi network for 1/2 hr, it stops looking for networks, and I need to lock and unlock it to stir the device into looking again. 这是我在wifi上的经验:如果在运行我的应用程序时ipod在未连接wifi网络达1/2个小时之后,它会停止寻找网络,并且我需要锁定和解锁它才能使设备看起来更漂亮再次。

One other thing: the iPhone has the screen dimmed by the proximity sensor while all this persistent network use is happening. 另一件事:当所有这些持续的网络使用发生时,iPhone的屏幕被接近传感器调暗。

Wi-Fi going down after 30 min of inactivity is a documented behavior. 闲置30分钟后Wi-Fi断开是有记录的行为。 Cellular network is always active, unless turned off by the user. 蜂窝网络始终处于活动状态,除非用户将其关闭。 So if it goes down for a while it should get back online automatically when possible even if there was no user activity. 因此,如果它关闭了一段时间,即使没有用户活动,它也应该在可能的情况下自动重新联机。

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

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