{"action":"opened","issue":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/124","repository_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le","labels_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/124/comments","events_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/124/events","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/124","id":194567285,"number":124,"title":"Unable to subscribe for the BLE notifications in android","user":{"login":"AnoopChatra","id":21211902,"avatar_url":"https://avatars.githubusercontent.com/u/21211902?v=3","gravatar_id":"","url":"https://api.github.com/users/AnoopChatra","html_url":"https://github.com/AnoopChatra","followers_url":"https://api.github.com/users/AnoopChatra/followers","following_url":"https://api.github.com/users/AnoopChatra/following{/other_user}","gists_url":"https://api.github.com/users/AnoopChatra/gists{/gist_id}","starred_url":"https://api.github.com/users/AnoopChatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnoopChatra/subscriptions","organizations_url":"https://api.github.com/users/AnoopChatra/orgs","repos_url":"https://api.github.com/users/AnoopChatra/repos","events_url":"https://api.github.com/users/AnoopChatra/events{/privacy}","received_events_url":"https://api.github.com/users/AnoopChatra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T10:53:40Z","updated_at":"2016-12-09T10:53:40Z","closed_at":null,"body":"Hi ,\r\n\r\n   In android  I am unable to subscribe for the BLE notification for a particular characteristic though it supports notification.\r\n\r\nWill there be any issue if I await the subscribe call ??\r\n \r\n\r\n## Steps to reproduce\r\n\r\n1.I have successfully connected to a BLE device using : \r\nCrossBluetoothLE.Current.Adapter.ConnectToDeviceAsync(deviceToBeConnected);\r\n\r\n2. I have successfully read all the services and characteristics\r\n\r\n3.I am trying to subscribe for the notification for a particular characteristic of a particular service, using :\r\n await characteristic.StartUpdatesAsync();\r\n\r\n## Expected behavior\r\nThe app should successfully register for the notifications\r\n\r\n## Actual behavior\r\nThe app is crashing \r\n\r\n### Crashlog\r\n2-09 09:01:02.183 I/MonoDroid(25485): UNHANDLED EXCEPTION:\r\n12-09 09:01:02.202 I/MonoDroid(25485): abc.xyz.BluetoothLeException: Exception occured in StartNotify()  ---> System.Exception: GATT: WRITE descriptor value failed\r\n12-09 09:01:02.202 I/MonoDroid(25485):   at Plugin.BLE.Android.Descriptor.InternalWrite (System.Byte[] data) [0x0002c] in <7bece02839074605be3fd9668a0f909c>:0 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at Plugin.BLE.Android.Descriptor+<>c__DisplayClass8_0.<WriteNativeAsync>b__0 () [0x00000] in <7bece02839074605be3fd9668a0f909c>:0 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at Plugin.BLE.Abstractions.Utils.TaskBuilder+<FromEvent>d__1`3[TReturn,TEventHandler,TRejectHandler].MoveNext () [0x000b3] in <0fdbf1b4ae3a48c4887b46bc9db47baa>:0 \r\n12-09 09:01:02.202 I/MonoDroid(25485): --- End of stack trace from previous location where exception was thrown ---\r\n12-09 09:01:02.202 I/MonoDroid(25485):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3819/c1d1c79c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3819/c1d1c79c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3819/c1d1c79c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3819/c1d1c79c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/3819/c1d1c79c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 \r\n12-09 09:01:02.202 I/MonoDroid(25485):   at Plugin.BLE.Android.Characteristic+<StartUpdatesNativeAsync>d__21.MoveNext () [0x002aa] in <7bece02839074605be3fd9668a0f909c>:0 \r\n\r\nIf something causes an exception paste full stack trace + Exception here\r\n\r\n## Configuration\r\n\r\n**Version:** Plugin.BLE.1.2.0-beta2\r\n\r\n**Platform:** Android 6.0\r\n\r\n**Device:** LG Nexus 5\r\n"}}
{"actor":{"display_login":"AnoopChatra"}}