iOS iPhone GKSession discovery in background -


i know system can close bonjour sockets while application suspended. ,will system allow me while application in background discover other devices not creating sockets them , perhaps store devices in list or ?

use uiapplication's method

- (uibackgroundtaskidentifier)beginbackgroundtaskwithexpirationhandler:(void (^)(void))handler 

you can run code in background 600 seconds on ios 4.x , later versions.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -