-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Nearby Connections API not working in some devices #145
Comments
Hi Goutham, Could you tell us what versions of GooglePlayServices you are using on these devices? Does the same version work on Nexus 9, but not on your Galaxy Tab S? Also, what version of the client SDK are you building your app against? |
Varun, I'm using GooglePlayServices version 10.0.1 and compileSdkVersion and targetSdkVersion is 24. And please note that the app which I built or the 'connections-quickstart' didn't work in Nexus 9 with other mobiles however the advertise and discover statuses where shown success. But Galaxy worked with my moto g2 alone, however on testing the app (close and running again) after say 5 times, it doesn't work. Please share your ideas to solve the issue bro. |
Hi there, In my app, I'm using: Do you have an idea about what's going on? |
Thanks all for the reports. @djavan-bertrand your case is interesting, are you saying the setup with the same devices and the same WiFi network no longer works? Is there anything unusual in the |
More precisely, I'm saying that the setup with the same device and the same Wifi network sometimes works, and sometimes (in my case most of the time) does not work. Please note that I've tested on other networks (Android phone access point, my home's Wifi, my work place's wifi) with the same result. Here are some logs:
As you can see in the advertiser logs, mdns seems to correctly advertise on the network:
On the discoverer, I don't really understand what mdns is doing, maybe you'll have a better understanding that me.
Thanks anyway! |
Hi, any new about that problem? Thx |
Hey, @djavan-bertrand ! |
Hi. Not sure what to think about this experiment.
In my app, I set the play services version to 8.1.0. Don't know what to guess about these results... But it's an important problem since the whole Nearby API can't be trusted :'( |
Hi! Sad to hear that. What's the factory version of Google Play Service on S7? According to my investigation it works on 8.7.* and broken on 9.8.*. Not sure about other versions yet. |
As mentioned, S7 factory version of Google Play Services is 9.8.79. |
Seems not as straightforward as I thought. =( |
I'm experiencing similar problems.. Running the sample on a couple devices and the services cant find the endpoints |
@samtstern do you have update on this bug? I can post other logs if you want. |
Hello, |
same problem on my huawei v8 and oneplus a001 |
I'm assuming there's no fix for this? I'm having this same issue between my Pixel XL and my Nexus 6 |
I think I found the issue, at least on my Pixel device. Below is what happens when I try to startAdvertising on my Pixel. Notice this line in the middle
On my Nexus device, the line instead shows success.
@samtstern It doesn't look like this project has been updated in awhile, are you able to provide any insight? |
I think this project is dead.... sadly, |
Hey all. I no longer work on Nearby Connections but I do still get these notifications. In the recent Has anyone tried the new methods? Any improvement? |
Thanks @samtstern. I just tried briefly and it seems to be better now.
I think the previous versions did not returned these errors. |
Hi All, We very recently published a codelab that shows how to implement the Nearby Connections API. I believe it should help resolve your issues. If it doesn't please, reopen with additional comments. Best, Isai |
Tested connections-quickstart sample with Nexus 9 (5.0) and moto g2(6.0 rooted) with both devices in the same WiFi network. Both show success status in advertising and discovery. But doesn't show nearby devices (i.e. fails to go into onEndPointFound() method). The same was the result when tried with Nexus 9 (5.0) and Nexus 9 (7.0). But when tested with Galaxy tab S(5.0.3) with moto g2(6.0 rooted) works good for some time (say 5 times) and later requires reboot of Galaxy device to work good again.
P.s. My WiFi network do support mDNS discoverability and I've also tested with various other WiFi networks
May be an update on Nearby API samples is needed.
The text was updated successfully, but these errors were encountered: