{"action":"opened","issue":{"url":"https://api.github.com/repos/randdusing/BluetoothLE/issues/177","labels_url":"https://api.github.com/repos/randdusing/BluetoothLE/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/randdusing/BluetoothLE/issues/177/comments","events_url":"https://api.github.com/repos/randdusing/BluetoothLE/issues/177/events","html_url":"https://github.com/randdusing/BluetoothLE/issues/177","id":101195075,"number":177,"title":"Subscription dropped on Windows","user":{"login":"lhelsloot","id":7403141,"avatar_url":"https://avatars.githubusercontent.com/u/7403141?v=3","gravatar_id":"","url":"https://api.github.com/users/lhelsloot","html_url":"https://github.com/lhelsloot","followers_url":"https://api.github.com/users/lhelsloot/followers","following_url":"https://api.github.com/users/lhelsloot/following{/other_user}","gists_url":"https://api.github.com/users/lhelsloot/gists{/gist_id}","starred_url":"https://api.github.com/users/lhelsloot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhelsloot/subscriptions","organizations_url":"https://api.github.com/users/lhelsloot/orgs","repos_url":"https://api.github.com/users/lhelsloot/repos","events_url":"https://api.github.com/users/lhelsloot/events{/privacy}","received_events_url":"https://api.github.com/users/lhelsloot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T18:13:54Z","updated_at":"2015-08-15T18:13:54Z","closed_at":null,"body":"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.\r\n\r\nBased on [this SO question](http://stackoverflow.com/questions/28334736/gattcharacteristic-valuechanged-stops-getting-called), 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.\r\n\r\nIs anyone aware of a cleaner solution?"}}