Skip to content

Android Issue: Service discovery / characteristic read times out after Bluetooth is toggled OFF → ON #788

@kathiresh-i2i

Description

@kathiresh-i2i

Describe the bug
When a BLE device is already paired with the mobile phone and successfully connected, everything works as expected initially.
However, if Bluetooth is turned OFF and then ON again from the mobile system settings while the app is running, subsequent BLE operations fail.

To Reproduce
Steps to reproduce the behavior:

  1. Pair and connect a BLE device successfully
  2. Perform service discovery and read characteristics (works fine)
  3. Turn Bluetooth OFF from mobile system settings
  4. Turn Bluetooth ON again
  5. Attempt to call BluetoothLe.discover() or read any characteristic

Expected behavior

  • App should be able to re-discover services and read characteristics after Bluetooth is turned back ON
  • Existing or re-established connection should work without timing out

Screenshots

Image

Plugin version:

  • @capacitor-community/bluetooth-le: 7.0.0 and 7.3.0

Smartphone (please complete the following information):

  • Device: Android
  • OS: 8.1 one UI
  • Browser: Chrome
  • Version [ 16

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidImpacts the Android platformbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions