iphone - GameKit WiFi works on a simulator but not on a device -


i have faced unexplainable problem while working gamekit. when establishing connection on wifi (picker.connectiontypesmask = gkpeerpickerconnectiontypeonline;) devices cannot see each other. see nothing while simulator sees everything, can see device or simulator working on different machine. i've been banging head on few days trying understand why works on simulator not on device. can please me?

this how create session

 if (type == gkpeerpickerconnectiontypeonline)  {     picker.delegate = nil;     [picker dismiss];     [picker autorelease];      [alert settitle:@"\n\n\n"];     [alert setmessage:@"looking other ipads, iphones or ipod touches..."];     [alert addbuttonwithtitle:@"cancel"];      uiactivityindicatorview *progress   = [[uiactivityindicatorview alloc] initwithframe:cgrectmake(125, 50, 30, 30)];     progress.activityindicatorviewstyle = uiactivityindicatorviewstylewhitelarge;     [alert addsubview:progress];     [progress startanimating];     [alert show];      self.gamesession = [[gksession alloc] initwithsessionid:ksessionid displayname:nil sessionmode:gksessionmodepeer];     self.gamesession.available = yes;     self.gamesession.delegate = self;     self.gamesession.disconnecttimeout = 0;     [self.gamesession setdatareceivehandler:self withcontext:nil]; } 


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -