Replies: 2 comments 1 reply
-
Hi @kinggolf I am a maintainer on both plugins... This is definitely interesting to hear! This is simple read? Is it Android or iOS? Are there any other Bluetooth-related calls going on in the background? What length of time is this measured over? Which capacitor version? The code paths within the plugin are "somewhat" similar, but the capacitor version definitely has a few more queues in the way. I'd be interested in improving the performance to match between the two. |
Beta Was this translation helpful? Give feedback.
-
Hi @peitschie I have collected more data and the discrepancy happens consistently on Android and not iOS. The iOS readings are very consistent between Cordova and Capacitor ble plugins, with averages of 31-33ms. On Android the Cordova version the average is also 31-33ms, but on Capacitor jumps up to 43-45ms. |
Beta Was this translation helpful? Give feedback.
-
We converted our mobile app from cordova to capacitor last year and at the same time converted from Angular 14 to Angular 18. We switched from cordova-plugin-ble-central to this capacitor plugin. We have noticed increased latency using capacito. Our application structure has not changed other than converting from cordova. Using the same phone and the same remote bluetooth device measurements show RTT average to be approximately 30ms with old app(cordova) vs about 40ms with the new app version(capacitor).
Our measurements have been repeated with multiple remove devices.
Has this been seen by anyone else and could this be attributed to this plugin? Thanks for any insight here.
Beta Was this translation helpful? Give feedback.
All reactions