开发者

iphone - how to disable network power saving mode

开发者 https://www.devze.com 2023-02-10 20:30 出处:网络
Whilst making a Game Center GKMatch game I\'ve come to realise the iphone networking hardware will go into power save mode if I don开发者_如何转开发\'t transmit/receive anything within 100ms (or somet

Whilst making a Game Center GKMatch game I've come to realise the iphone networking hardware will go into power save mode if I don开发者_如何转开发't transmit/receive anything within 100ms (or something like that). Coming out of power save mode can take 500ms, which is bad. To prevent this from happening I just send something periodically. But I don't REALLY want to do that because it uses up people's monthly 3G data usage.

Is there some way to programmatically disable power saving for networking?


I haven't tried this, but can you send something to localhost (127.0.0.1) periodically, to keep the connection up, without going over WWAN or wi-fi?

0

精彩评论

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