capacitor-community / bluetooth-le

Capacitor plugin for Bluetooth Low Energy
MIT License
281 stars 85 forks source link

startNotifications indications callbacks not working on Android (Tesla vehicle device) #665

Closed jbanyer closed 3 months ago

jbanyer commented 3 months ago

Describe the bug Tesla vehicles have a BLE service which sends indications on a characteristic. Using startNotifications() for this characteristic works on my iOS device but not on my Android device: the call succeeds but no callback events occur.

To Reproduce

On my iOS device the callbacks start occurring immediately.

On my Android device the call to startNotifications() appears to succeed however no callbacks occur. See bottom of this comment for debug logs.

Expected behavior Notification callbacks should occur on Android, as they do on iOS.

Screenshots If applicable, add screenshots to help explain your problem.

Plugin version:

**Smartphone - Android (not working)

**Smartphone - iOS (working)

Additional context

(debug logs removed for brevity)

jbanyer commented 3 months ago

Closed: this was happening because the Tesla app was installed on my Android device and not on my iOS device. When I uninstalled the Tesla app then my app started receiving the notifications as expected.