androider
androider

Reputation: 449

exception while mast type to GKPeerPickerConnectionTypeOnline

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?

Upvotes: 0

Views: 558

Answers (1)

Tom
Tom

Reputation: 97

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."

Upvotes: 1

Related Questions