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

BLE don't work betweeb Android (startDiscovering) and iOS (startAdvertising #2465

Closed
Droppix opened this issue Apr 19, 2024 · 1 comment
Closed
Labels
duplicate Issue is closed as a duplicate of an existing issue platform: apple An issue with the macOS or iOS implementation project: connections An issue with the Connections project

Comments

@Droppix
Copy link

Droppix commented Apr 19, 2024

Hi,

I tried to integrate Nearby with Android (startDiscovering) and iOS (startAdvertising:
I used this example []https://github.com/google/nearby/tree/b80426a043356fe4820c66c17b83cc9ec6aeb073/connections/swift/NearbyConnections/Example

1/ If the 2 devices are on the same local network, it works fine.

2/ If I disable WIFI or change the WiFI network on iOS, to force the use of Bluetooth, it doesn't work, no detection on the Android side.

However, if I reverse the logic between Android (startAdvertising) and iOS (startDiscovering), iOS detects the endpoint, it's work!

Any ideas, suggestions?

Thanks

@Droppix Droppix added needs-triage Issue still needs to be assigned, labeled and deduplicated type: question General questions (we may not have time to provide an answer) labels Apr 19, 2024
@bourdakos1
Copy link
Collaborator

Hi @Droppix

Nearby Connections iOS does not support Bluetooth yet. You can turn on the experimental feature with the following flag, but you may run into bugs:

+ (void)setEnableBLEV2:(BOOL)value {

Nearby Connections on Android will automatically enable Wi-Fi when you call startAdvertising, so that may be why discovery succeeds when Android is the advertiser.

I'm closing this as a duplicate, because we are tracking Bluetooth (BLE) support in #1619, but feel free to continue the conversation in that issue :)

@bourdakos1 bourdakos1 added duplicate Issue is closed as a duplicate of an existing issue platform: apple An issue with the macOS or iOS implementation project: connections An issue with the Connections project and removed type: question General questions (we may not have time to provide an answer) needs-triage Issue still needs to be assigned, labeled and deduplicated labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue is closed as a duplicate of an existing issue platform: apple An issue with the macOS or iOS implementation project: connections An issue with the Connections project
Projects
None yet
Development

No branches or pull requests

2 participants