Problems with GKPeerPickerController finding other instances
I've been playing around with the Peer Picker for about a week and having very good luck. However, suddenly my applications can't seem to see each other on two iPod touches with OS 3.1.3 on both. Bluetooth is enabled on both.
I'm convinced something in my simple application is causing problems as things were working fine, then sometimes a code change on one of the touches seemed to change the behavior of the picker. Now I've gotten into the state where neither machine sees the other.
The code to start the picker is very simple and almost verbatim from GKTank:
-(void)startPicker
{
GKPeerPickerController *picker;
picker = [[GKPeerPickerController alloc] init];
picker.delegate = self;
[picker show]; // show the Peer Picker
self.status = SESSION_STAT_PICKER;
}
Looking at the console it appears that my test machine ("Bob's iPod touch" sees the other test system ("Jason's iPod"):
2010-02-07 16:14:12.563 iAnnoy[1876:4f03] ~ DNSServiceRegister callback: Ref=14d540, Flags=3, ErrorType=0 name=00lnRw31A..Bob's iPod touch regtype=_9ij3sthbiraum1._udp. domain=local.
2010-02-07 16:14:12.571 iAnnoy[1876:4f03] ~ DNSServiceBrowse callback: Ref=148b50, Flags=2, IFIndex=2 (name=[en0]), ErrorType=0 name=00lnRw31A..Bob's iPod touch regtype=_9ij3sthbiraum1._udp. domain=local.
2010-02-07 16:14:48.852 iAnnoy[1876:4f03] ~ DNSServiceBrowse callback: Ref=148b50, Flags=0, IFIndex=2 (name=[en0]), ErrorType=0 name=00HAbhd0A..Jason's iPod regtype=_9ij3sthbiraum1._udp. domain=local.
Ideas? Suggestions?
|