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

Couldn't get NearBy to work on Android #123

Open
spring-reverb opened this issue Mar 18, 2022 · 3 comments
Open

Couldn't get NearBy to work on Android #123

spring-reverb opened this issue Mar 18, 2022 · 3 comments

Comments

@spring-reverb
Copy link

Hello! We are trying out the NearBy feature of newnode. It works fine on iOS. However, we couldn't get it to work on Android.

We tried an experiment on 4 different androids (at the same time): Xiaomi with Android 10, Huawei with Android 10, Google Pixel with Android 12, Xiaomi with Android 6.

Basically, we disabled wifi and cellular on one of the phones and tried to fetch some data several times (clicking the button in ui several times) on that phone. The same app were running on all of the devices and only on of the devices didn't have an internet connection at the time. We repeated that process on each phone.

We haven't received any data on any of the smartphones.

By the way, NewNode works fine if we enable wifi and "ban" the requested resource through firewall on network side. But in this scenario it does not use NearBy.

There are quite a lot of logs from newnode and it looks like something is happening with nearby. It discovers something. It registers something, etc…

Here are the sources for the test app: https://github.com/spring-reverb/nn_near_by_check

The test application sends GET request to https://dummy.restapiexample.com/api/v1/employee/2 and shows the result in a toast (or an exception message) when you click on the "mail" button.

@spring-reverb
Copy link
Author

spring-reverb commented Mar 18, 2022

Log files from the devices during experiments:
huawei_android_10.log

pixel_android_12.log

xiaomi_android_6.log

xiaomi_android_10.log

@ghazel
Copy link
Collaborator

ghazel commented Mar 21, 2022

Google Nearby does use Wifi, so disabling it will break the test. Instead, disassociate with the wireless router you have.

@spring-reverb
Copy link
Author

@ghazel We tried to test the way you described ("forgetting" the wifi network), but it didn't work either.

Could you please try the same experiment with our test app? Maybe we are doing something else wrong?

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