{"action":"created","issue":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/321","repository_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le","labels_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/321/comments","events_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/321/events","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/321","id":348314103,"node_id":"MDU6SXNzdWUzNDgzMTQxMDM=","number":321,"title":"BLE does not scan","user":{"login":"bleari","id":41026582,"node_id":"MDQ6VXNlcjQxMDI2NTgy","avatar_url":"https://avatars0.githubusercontent.com/u/41026582?v=4","gravatar_id":"","url":"https://api.github.com/users/bleari","html_url":"https://github.com/bleari","followers_url":"https://api.github.com/users/bleari/followers","following_url":"https://api.github.com/users/bleari/following{/other_user}","gists_url":"https://api.github.com/users/bleari/gists{/gist_id}","starred_url":"https://api.github.com/users/bleari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleari/subscriptions","organizations_url":"https://api.github.com/users/bleari/orgs","repos_url":"https://api.github.com/users/bleari/repos","events_url":"https://api.github.com/users/bleari/events{/privacy}","received_events_url":"https://api.github.com/users/bleari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T13:09:59Z","updated_at":"2018-08-07T13:10:04Z","closed_at":null,"author_association":"NONE","body":"## Steps to reproduce\r\n\r\n1. Plugin has been added as suggested.\r\n\r\n2. Visual studio and Xamarin.Forms are updated to the latest version.\r\n\r\n3. Code attached below\r\n```\r\nusing System;\r\n\r\nusing Android.App;\r\nusing Android.Content.PM;\r\nusing Android.Runtime;\r\nusing Android.Views;\r\nusing Android.Widget;\r\nusing Android.OS;\r\nusing Plugin.BLE;\r\nusing Plugin.BLE.Abstractions.Exceptions;\r\nusing System.Collections.Generic;\r\nusing Android.Bluetooth;\r\nusing Whale_Watch.Droid;\r\n\r\nnamespace Whale_Watch.Droid\r\n{\r\n    [Activity(Label = \"BLE_Test\",  Theme = \"@style/MainTheme\", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]\r\n    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity\r\n    {\r\n        protected async override void OnCreate(Bundle bundle)\r\n        {\r\n            TabLayoutResource = Resource.Layout.Tabbar;\r\n            ToolbarResource = Resource.Layout.Toolbar;\r\n\r\n            base.OnCreate(bundle);\r\n\r\n            global::Xamarin.Forms.Forms.Init(this, bundle);\r\n            LoadApplication(new App());\r\n            await scanAsync();\r\n        }\r\n        public async System.Threading.Tasks.Task scanAsync()\r\n        {          \r\n            List<Plugin.BLE.Abstractions.Contracts.IDevice> deviceList = new List<Plugin.BLE.Abstractions.Contracts.IDevice>();\r\n            var ble = CrossBluetoothLE.Current;\r\n            var adapter = CrossBluetoothLE.Current.Adapter;\r\n            var state = ble.State;           \r\n            adapter.ScanTimeout = 200000;\r\n            adapter.DeviceDiscovered += (s, a) => deviceList.Add(a.Device);\r\n            await adapter.StartScanningForDevicesAsync();            \r\n        }      \r\n    }\r\n}\r\n```\r\n## Expected behavior\r\nIt should scan for all nearby Bluetooth le devices.\r\n\r\n## Actual behavior\r\nIt will run the code and no errors are formed, however even though there are ble devices visible it does not return any or add them to the list. I am unsure if my code is at fault.\r\n\r\n### Crashlog\r\n\r\nDoes not crash or cause an exception\r\n\r\n## Configuration\r\n\r\n**Version of the Plugin:** 1.3.0\r\n\r\n**Platform:** Compiled using Android 8.1\r\n\r\n**Device:** Moto E4 Plus, but will also occur on all other devices tested.\r\n"},"comment":{"url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/comments/411050083","html_url":"https://github.com/xabre/xamarin-bluetooth-le/issues/321#issuecomment-411050083","issue_url":"https://api.github.com/repos/xabre/xamarin-bluetooth-le/issues/321","id":411050083,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTA1MDA4Mw==","user":{"login":"smsissuechecker","id":25065596,"node_id":"MDQ6VXNlcjI1MDY1NTk2","avatar_url":"https://avatars0.githubusercontent.com/u/25065596?v=4","gravatar_id":"","url":"https://api.github.com/users/smsissuechecker","html_url":"https://github.com/smsissuechecker","followers_url":"https://api.github.com/users/smsissuechecker/followers","following_url":"https://api.github.com/users/smsissuechecker/following{/other_user}","gists_url":"https://api.github.com/users/smsissuechecker/gists{/gist_id}","starred_url":"https://api.github.com/users/smsissuechecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smsissuechecker/subscriptions","organizations_url":"https://api.github.com/users/smsissuechecker/orgs","repos_url":"https://api.github.com/users/smsissuechecker/repos","events_url":"https://api.github.com/users/smsissuechecker/events{/privacy}","received_events_url":"https://api.github.com/users/smsissuechecker/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T13:10:04Z","updated_at":"2018-08-07T13:10:04Z","author_association":"NONE","body":"Hi @bleari,\n\nI'm the friendly issue checker.\nThanks for using the issue template :star2:\nI appreciate it very much. I'm sure, the maintainers of this repository will answer, soon."}}
{"actor":{"display_login":"smsissuechecker"}}