cordova-plugin-bluetoothle
cordova-plugin-bluetoothle copied to clipboard
Subscription dropped on Windows
My Windows Phone 8.1 device keeps dropping its subscription to a BLE characteristic. After subscribing, it receives notifications for a short while, after which no more updates are received.
Based on this SO question, I explicitly prevent characteristic descriptors on which the onvaluechanged property is set from being garbage collected by storing them in a local object, which seems to work so far. However, I've not been able to thoroughly test this solution. Moreover, it's far from elegant.
Is anyone aware of a cleaner solution?
@lhelsloot Hi, one question: how did you install the plugin for WP8? In plugin.xml I see platform wp8 commented. Does it work for Windows Phone? Thanks