开发者

Wifi connection doesn't stay alive when asleep, with iOS4

开发者 https://www.devze.com 2023-01-05 05:56 出处:网络
Knowing that iOS4 support wifi stay alive in asleep is really happy thing. However I got som开发者_高级运维e different experience:

Knowing that iOS4 support wifi stay alive in asleep is really happy thing. However I got som开发者_高级运维e different experience: I've got 2 iPods, iPod 2nd gen & iPod 3rd gen. Both updated to iOS 4 beta. iPod 2g can stay wifi on in sleep while iPod 3g always disconnect wifi in sleep. I ping both of them while they're in sleep mode, only iPod 2g keeps reply echo.

Could any often a hint to show the point I'm doing wrong?


Test with adding this on your plist :

UIRequiresPersistentWiFi = YES

With this the wifi is alive during all the life of your app.

0

精彩评论

暂无评论...
验证码 换一张
取 消