0

I am using GKPeerPickerController , i need to send message using wifi , so iam using following code

         picker = [[GKPeerPickerController alloc] init];

         picker.connectionTypesMask= GKPeerPickerConnectionTypeOnline;
         picker.delegate = self;

but when i use this following error occurs

 Terminating app due to uncaught exception 'GKInvalidArgumentException', reason: 'A     GKPeerPickerController must support GKPeerPickerConnectionTypeNearby at a minimum.'

please help how to solve it?

User97693321
  • 3,336
  • 7
  • 45
  • 69
androider
  • 449
  • 2
  • 8
  • 21

1 Answers1

1

The error message is your answer: according to the docs: "GKPeerPickerConnectionTypeNearby is required to be one of the allowed connection types. An exception is thrown if your application does not include it."

Tom
  • 97
  • 1
  • 5