Reputation: 46
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?
Upvotes: 3
Views: 2493
Reputation: 96976
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?
Upvotes: 2