Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2010, 04:30 PM   #1 (permalink)
Bob
Registered Member
 
Join Date: Feb 2010
Posts: 2
Bob is on a distinguished road
Default 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?
Bob is offline   Reply With Quote
Old 02-09-2010, 06:41 PM   #2 (permalink)
Bob
Registered Member
 
Join Date: Feb 2010
Posts: 2
Bob is on a distinguished road
Default

It's OS 3.1.3. GKTank didn't work under it either. Once I reverted back to 3.1.2 both GKTank and my application started working again.
Bob is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 401
8 members and 393 guests
13dario13, ChrisYates, fredidf, iOS.Lover, jeroenkeij, Leslie80, Wikiboo, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,670
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Yosh_K
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:41 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0