I'm making an iOS 7 app with the Multipeer connectivity framework, but I am unable to get two devices to recognize each other. I've looked through the documentation and wwdc video, and the information on this framework is very limited besides that. Does anyone have experience working with the new peer-to-peer capability and can help?
Here's basically what I have so far. The browserVC is presented on the screen but no devices are found when I'm running the app on two devices.
MCPeerID *peer = [[MCPeerID alloc] initWithDisplayName:@"user"];
_session = [[MCSession alloc] initWithPeer:peer];
NSString *service = @"nsync";
_session.delegate = self;
MCAdvertiserAssistant *assistant =[[MCAdvertiserAssistant alloc] initWithServiceType:service
discoveryInfo:nil
session:_session];
[assistant start];
MCBrowserViewController *browserVC = [[MCBrowserViewController alloc] initWithServiceType:service
session:_session];
browserVC.delegate = self;
[self presentViewController:browserVC
animated:YES
completion:nil];