🐞 Notifications stop after a few seconds. #607
Unanswered
Marshall-Moussavi
asked this question in
Q&A
Replies: 1 comment
-
Not sure if this is relevant, but I see several |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behaviour:
Notifications on connectedSmartTrainer and connectedHeartRateMonitor are sent for ~5 seconds then stop. OnDisconnect
callback is not called.
Desired behaviour:
Notifications do not stop until device is disconnected.
Testing on iPhone 12 in Xcode 14.2 with Capacitor-community/ble 3.1.1, Capacitor 5.5.1
*here is the minimal reproducible example
here are console log statements before/after the notifications stop:
2023-12-23 00:34:51.627493-0500 App[1261:49633] [CoreBluetooth] XPC connection invalid
⚡️ BluetoothLe - Resolve initialize BLE powered on
⚡️ TO JS undefined
⚡️ TO JS {"value":"44 00 00 00 00 00 00 00 "}
⚡️ [log] - bike value: {}
⚡️ To Native -> BluetoothLe initialize 126091190
2023-12-23 00:34:52.607400-0500 App[1261:49633] [CoreBluetooth] XPC connection invalid
⚡️ BluetoothLe - Resolve initialize BLE powered on
⚡️ TO JS undefined
⚡️ To Native -> BluetoothLe removeListener 126091191
⚡️ To Native -> BluetoothLe stopLEScan 126091192
⚡️ BluetoothLe - Stop scanning.
⚡️ TO JS undefined
⚡️ To Native -> BluetoothLe isEnabled 126091193
⚡️ TO JS {"value":true}
⚡️ TO JS {"value":"44 00 00 00 00 00 00 00 "}
⚡️ [log] - bike value: {}
⚡️ To Native -> BluetoothLe initialize 126091194
2023-12-23 00:34:53.633617-0500 App[1261:49633] [CoreBluetooth] XPC connection invalid
⚡️ BluetoothLe - Resolve initialize BLE powered on
⚡️ TO JS undefined
⚡️ TO JS {"value":"44 00 00 00 00 00 00 00 "}
⚡️ [log] - bike value: {}
⚡️ To Native -> BluetoothLe initialize 126091195
2023-12-23 00:34:54.622721-0500 App[1261:49633] [CoreBluetooth] XPC connection invalid
⚡️ BluetoothLe - Resolve initialize BLE powered on
⚡️ TO JS undefined
⚡️ To Native -> BluetoothLe addListener 126091196
⚡️ To Native -> BluetoothLe requestLEScan 126091197
⚡️ BluetoothLe - Resolve startScanning Scan started.
⚡️ TO JS undefined
⚡️ To Native -> BluetoothLe isEnabled 126091198
⚡️ TO JS {"value":true}
⚡️ BluetoothLe - New device found: HRM-Dual:876785
⚡️ TO JS {"rssi":-44,"localName":"HRM-Dual:876785","manufacturerData":{"135":"0c e3 "},"txPower":127,"uuids":["0000180d-0000-1000-8000-00805f9b34fb","6a4e3e10-667b-11e3-949a-0800200c9a66"],"serviceData":{"00003e10-0000-1000-8000-00805f9b34fb":"00 13 00 04 f1 60 0d
⚡️ TO JS {"value":"44 00 00 00 00 00 00 00 "}
⚡️ [log] - bike value: {}
⚡️ To Native -> BluetoothLe initialize 126091199
2023-12-23 00:34:55.612388-0500 App[1261:49876] [CoreBluetooth] XPC connection invalid
⚡️ BluetoothLe - Resolve initialize BLE powered on
⚡️ TO JS undefined
2023-12-23 00:34:56.331343-0500 App[1261:49876] [CoreBluetooth] XPC connection invalid
⚡️ To Native -> BluetoothLe removeListener 126091200
⚡️ To Native -> BluetoothLe stopLEScan 126091201
⚡️ BluetoothLe - Stop scanning.
⚡️ TO JS undefined
I am grateful for any help. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions