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

iOS - Device not found, but Device shows BT connected/paired? #448

Open
allidoisace opened this issue Apr 4, 2022 · 2 comments
Open

iOS - Device not found, but Device shows BT connected/paired? #448

allidoisace opened this issue Apr 4, 2022 · 2 comments

Comments

@allidoisace
Copy link

I am currently using Ionic 6 in React on iOS. I am really struggling to get this working as I receive a Device not found. The iOS device shows the interlocking chains at the top right with BT connected to the Device Name.

const selectAccessory = async () => {
    const deviceDiscovery = BluetoothClassicSerialPort.setDeviceDiscoveredListener().subscribe(async (connectionConfig) => {
      console.log(connectionConfig);
      deviceDiscovery.unsubscribe();
    })
    await BluetoothClassicSerialPort.discoverUnpaired().catch(error => {
      console.log(error);
      deviceDiscovery.unsubscribe();
    })
  }

The selection for the Accessory pops up with the device name on the app, I select it and receive the error Device not found. However, BT is connected to the device. Even if I run a list() after the fact, it is an empty array.

@kieranbarlow
Copy link

Did you manage to get this working? I'm struggling to pick up any devices on IOS.

@vitorcrivano
Copy link

For me its the same here.. It works like charm on Android but the same device doens't show on the list for iOS.
Any updates on this issue?

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

3 participants