{"action":"created","issue":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/492","repository_url":"https://api.github.com/repos/don/cordova-plugin-ble-central","labels_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/492/comments","events_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/492/events","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/492","id":273448572,"number":492,"title":"Callback not run on disconnect","user":{"login":"alanstallwood","id":15193815,"avatar_url":"https://avatars1.githubusercontent.com/u/15193815?v=4","gravatar_id":"","url":"https://api.github.com/users/alanstallwood","html_url":"https://github.com/alanstallwood","followers_url":"https://api.github.com/users/alanstallwood/followers","following_url":"https://api.github.com/users/alanstallwood/following{/other_user}","gists_url":"https://api.github.com/users/alanstallwood/gists{/gist_id}","starred_url":"https://api.github.com/users/alanstallwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanstallwood/subscriptions","organizations_url":"https://api.github.com/users/alanstallwood/orgs","repos_url":"https://api.github.com/users/alanstallwood/repos","events_url":"https://api.github.com/users/alanstallwood/events{/privacy}","received_events_url":"https://api.github.com/users/alanstallwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-13T14:29:37Z","updated_at":"2017-11-14T08:47:45Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm running android 8 on a Pixel C tablet. When bluetooth is turned off the disconnect callback method is not run.\r\n\r\nFound this in logcat which might be of relevance:\r\n```\r\n11-13 14:33:03.861  1422  1422 I GsaVoiceInteractionSrv: O received Intent { act=android.bluetooth.adapter.action.STATE_CHANGED flg=0x4000010 (has extras) }\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap: java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothMap$2@47f7903\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1466)\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.app.ContextImpl.unbindService(ContextImpl.java:1622)\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.content.ContextWrapper.unbindService(ContextWrapper.java:697)\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.bluetooth.BluetoothMap$1.onBluetoothStateChange(BluetoothMap.java:64)\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)\r\n11-13 14:33:03.865  1092  1357 E BluetoothMap:  at android.os.Binder.execTransact(Binder.java:674)\r\n\r\n```\r\n\r\nNo such issue exists on Pixel XL phone running android 8 or other android/ios devices.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/comments/344186148","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/492#issuecomment-344186148","issue_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/492","id":344186148,"user":{"login":"alanstallwood","id":15193815,"avatar_url":"https://avatars1.githubusercontent.com/u/15193815?v=4","gravatar_id":"","url":"https://api.github.com/users/alanstallwood","html_url":"https://github.com/alanstallwood","followers_url":"https://api.github.com/users/alanstallwood/followers","following_url":"https://api.github.com/users/alanstallwood/following{/other_user}","gists_url":"https://api.github.com/users/alanstallwood/gists{/gist_id}","starred_url":"https://api.github.com/users/alanstallwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanstallwood/subscriptions","organizations_url":"https://api.github.com/users/alanstallwood/orgs","repos_url":"https://api.github.com/users/alanstallwood/repos","events_url":"https://api.github.com/users/alanstallwood/events{/privacy}","received_events_url":"https://api.github.com/users/alanstallwood/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T08:47:45Z","updated_at":"2017-11-14T08:47:45Z","author_association":"NONE","body":"The callback function is passed as the 3rd parameter to ble.Connect\r\n\r\nble.Disconnect isn't called at all."}}
{"actor":{"display_login":"alanstallwood"}}