Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devices aren't seeing each other #25

Open
tmandry opened this issue Oct 5, 2015 · 2 comments
Open

Devices aren't seeing each other #25

tmandry opened this issue Oct 5, 2015 · 2 comments

Comments

@tmandry
Copy link

tmandry commented Oct 5, 2015

I haven't been able to discover anyone nearby, testing with 3 different devices (iPhone 5, 6, and 6 Plus) on the example app. Haven't changed anything.

There don't seem to be any interesting logs, except occasionally Received memory warning. On each device log I see this message repeated:

2015-10-05 13:28:37.027 DiscoveryExample[11294:1566532] Updating table view with users count : 0

but it only starts when I go home and reopen the app. In any case I can't get any of the devices to see the other.

@AndrewTSwann
Copy link

I'm having the same problem, did you find a solution?
iPhone5 and iPhone6S both with iOS 9.2.1.

@AndrewTSwann
Copy link

I found my problem. The solution was described in issue #21, use the following code in Discovery.m: initWithUUID:
self.shouldAdvertise = NO;
self.shouldDiscover = NO;

switch (startOption) {
case DIStartAdvertisingAndDetecting:
self.shouldAdvertise = YES;
self.shouldDiscover = YES;
break;
case DIStartAdvertisingOnly:
self.shouldAdvertise = YES;
break;
case DIStartDetectingOnly:
self.shouldDiscover = YES;
break;
case DIStartNone:
default:
break;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants