I’m implementing a connection between ios devices by using GameKit’s GKSession server and client (I need to send messages back and forth but I wont to differentiate a server).
Anyways, my problem is that I want the connection to be exclusively over wifi, not bluetooth. Here’s my code:
client = [[GKSession alloc] initWithSessionID:nil
displayName:[[UIDevice currentDevice] name]
sessionMode:GKSessionModeClient];
[client setAvailable:YES];
client is an instance of GKSession. At this point if I see at the console log the application is complaining about bluetooth not being available. How do I tell GKSession to just use wifi?
GKSession and GKSessionDelegate custom implementations works for both bluetooth and WiFi. It checks both for wifi and bluetooth, and choose an appropriate transmission medium. If your iPhone is Jailbroken, then there might be some issues with BlueTooth and possibly that is preventing Gamekit to Work Properly.