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

Enable BLE v2 support for iOS #1619

Open
Romoli-Gabriele opened this issue May 3, 2023 · 11 comments
Open

Enable BLE v2 support for iOS #1619

Romoli-Gabriele opened this issue May 3, 2023 · 11 comments
Assignees
Labels
P1 Priority 1 issue (will likely block a customer in the future) platform: apple An issue with the macOS or iOS implementation project: connections An issue with the Connections project

Comments

@Romoli-Gabriele
Copy link

here ask for all supported mediums but it returns only wifi lan
Screenshot 2023-05-03 alle 19 35 09
StartAdvertising with supported mediums: { WIFI_LAN }

@Romoli-Gabriele Romoli-Gabriele 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 May 3, 2023
@bourdakos1
Copy link
Collaborator

bourdakos1 commented May 3, 2023

We currently have BLE disabled on iOS due to some bugs, but you can enable it by setting this flag to true:

@bourdakos1 bourdakos1 self-assigned this May 3, 2023
@bourdakos1 bourdakos1 added P1 Priority 1 issue (will likely block a customer in the future) 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 May 3, 2023
@bourdakos1 bourdakos1 changed the title How i can add the BLE to the enable mediums of connections on ios? Enable BLE v2 support for iOS May 3, 2023
@Grbson00
Copy link

Grbson00 commented Feb 3, 2024

Hello, I was wondering if there's any rough estimate for when this feature might be completed? I understand that these things can take time, but having a general idea would be helpful for planning purposes.

@bourdakos1
Copy link
Collaborator

bourdakos1 commented Feb 3, 2024

Unfortunately we don’t have a timeline yet. BLE is working pretty well between iOS devices, but there can be some discovery/connection issues with Android. We aren’t comfortable enough to enable for production, but we’ve exposed the flag in the library, so you can enable it and try it out for yourself using: “GNCFlags.enableBLEV2 = true”

@albertmonzo
Copy link

@bourdakos1 Hey Nick, Albert from Monzo here. We were reviewing wether we are able to migrate our Nearby Messages integration to Nearby Connections, has there been any progress on iOS BLE?

@bourdakos1
Copy link
Collaborator

@albertmonzo We are currently rolling out some required changes to Nearby Connections on the Android side, but they haven't made it to production yet. Once those changes are live, I will post a status update here.

@anandgupadhyay
Copy link

@bourdakos1 and @albertmonzo I am into similar situation where I want to connect 2 devices (iOS or Android) and also determine proximate distance between devices using Nearby connection. if you can guide

@bourdakos1
Copy link
Collaborator

@anandgupadhyay The Nearby Connections API doesn’t currently provide proximity information, so it may not be the right choice for you

@timmyjose
Copy link

@bourdakos1 Reading through the whole thread, and some of the comments in here, I'm not sure if the Nearby Messages API would still work today? As in, for a Greenfield project. The documentation warns that the Nearby Messages API was deprecated in Decemeber, 2023? How are people still using it then?

We are also interested in using the Nearby API, but we're a React Native app, and the only libraries found thus far are for the Nearby Messages API.

Could you please give your thoughts on this?

@championofblocks
Copy link

@bourdakos1 hi Nick, Niall from Monzo here. 👋🏻 Just wondering if there had been any progress on this since your last update? We have been able to integrate the Nearby Connections library on iOS and Android and everything seems to be working well with the exception of iOS <-> Android BLE connections, which don't currently seem possible

@bourdakos1
Copy link
Collaborator

Hey @championofblocks, the changes mentioned in #1619 (comment) are still being rolled out to Android. However, we have also ran into an issue where a recent iOS update has broken BLE GATT connections between iOS <-> Android, when the Android device is the one doing the scanning. This has been resolved in Android 15+, which is not ideal, so we are looking into alternatives like L2CAP, which would support Android 11+. Nearby Messages will continue to function until we resolve this.

@championofblocks
Copy link

@bourdakos1 thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Priority 1 issue (will likely block a customer in the future) 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

7 participants