{"action":"created","issue":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/284","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/284/labels{/name}","comments_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/284/comments","events_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/284/events","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/284","id":166974144,"number":284,"title":"ble  can not scan in background","user":{"login":"wzhsh90","id":16187191,"avatar_url":"https://avatars.githubusercontent.com/u/16187191?v=3","gravatar_id":"","url":"https://api.github.com/users/wzhsh90","html_url":"https://github.com/wzhsh90","followers_url":"https://api.github.com/users/wzhsh90/followers","following_url":"https://api.github.com/users/wzhsh90/following{/other_user}","gists_url":"https://api.github.com/users/wzhsh90/gists{/gist_id}","starred_url":"https://api.github.com/users/wzhsh90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzhsh90/subscriptions","organizations_url":"https://api.github.com/users/wzhsh90/orgs","repos_url":"https://api.github.com/users/wzhsh90/repos","events_url":"https://api.github.com/users/wzhsh90/events{/privacy}","received_events_url":"https://api.github.com/users/wzhsh90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T05:43:32Z","updated_at":"2016-07-25T18:47:57Z","closed_at":null,"body":"ble plugin version:1.1.1\r\ncordova platform :ios 4.2.0\r\n\r\n\r\ntest step:\r\n\r\n 1、call the method  ble.startScan([], function (device) {},function(){}) and then lock the screen\r\n \r\ntest result:\r\n 1、the plugin can not scan ble in background\r\n\r\n 2、connected to the ble  device , then lock the screen the plugin work well\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/comments/235047004","html_url":"https://github.com/don/cordova-plugin-ble-central/issues/284#issuecomment-235047004","issue_url":"https://api.github.com/repos/don/cordova-plugin-ble-central/issues/284","id":235047004,"user":{"login":"don","id":3133,"avatar_url":"https://avatars.githubusercontent.com/u/3133?v=3","gravatar_id":"","url":"https://api.github.com/users/don","html_url":"https://github.com/don","followers_url":"https://api.github.com/users/don/followers","following_url":"https://api.github.com/users/don/following{/other_user}","gists_url":"https://api.github.com/users/don/gists{/gist_id}","starred_url":"https://api.github.com/users/don/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/don/subscriptions","organizations_url":"https://api.github.com/users/don/orgs","repos_url":"https://api.github.com/users/don/repos","events_url":"https://api.github.com/users/don/events{/privacy}","received_events_url":"https://api.github.com/users/don/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T18:47:57Z","updated_at":"2016-07-25T18:47:57Z","body":"iOS can scan in the background but I haven't done it with this plugin, so I'm not exactly sure of the behavior. (I do know that background notifications work fine.)\r\n\r\n1) You must enable [UIBackgroundModes](https://github.com/don/cordova-plugin-ble-central#background-notifications-on-ios)\r\n\r\n2) IIRC you need to scan for a specific UUID rather than any UUID"}}
{"actor":{"display_login":"don"}}