cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

Subscription dropped on Windows

Open lhelsloot opened this issue 10 years ago • 1 comments

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 avatar Aug 15 '15 18:08 lhelsloot

@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

thomasbaggio avatar Aug 20 '15 09:08 thomasbaggio