{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/9","labels_url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/9/comments","events_url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/9/events","html_url":"https://github.com/sandeepmistry/node-ancs/issues/9","id":112138818,"number":9,"title":"Discovery doesn’t work (OS X 10.11, iOS 9)","user":{"login":"sander","id":44112,"avatar_url":"https://avatars.githubusercontent.com/u/44112?v=3","gravatar_id":"","url":"https://api.github.com/users/sander","html_url":"https://github.com/sander","followers_url":"https://api.github.com/users/sander/followers","following_url":"https://api.github.com/users/sander/following{/other_user}","gists_url":"https://api.github.com/users/sander/gists{/gist_id}","starred_url":"https://api.github.com/users/sander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sander/subscriptions","organizations_url":"https://api.github.com/users/sander/orgs","repos_url":"https://api.github.com/users/sander/repos","events_url":"https://api.github.com/users/sander/events{/privacy}","received_events_url":"https://api.github.com/users/sander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-19T12:57:08Z","updated_at":"2015-10-28T06:22:41Z","closed_at":null,"body":"The library used to work well between my MacBook and iPhone, but a few months later (with an iOS reinstallation and OS X upgrade in between) it doesn’t. I’m trying it this way:\r\n\r\n1. Install ANCSExample on iOS.\r\n2. Run `DEBUG=* node test.js` on OS X.\r\n3. Run ANCSExample on iOS.\r\n\r\n**Expected:** Node recognizes the phone advertisement (with device name ‘testje’) and displays a sequence ‘discovered’, ‘connected’, ‘services and characteristics discovered’.\r\n\r\n**Instead:** Node just outputs all advertisements it finds, and doesn’t handle the ‘testje’ one differently. No connection etc. See the relevant output lines below:\r\n\r\n```\r\nyosemite-bindings xpcEvent: {\r\n  \"kCBMsgId\": 37,\r\n  \"kCBMsgArgs\": {\r\n    \"kCBMsgArgAdvertisementData\": {\r\n      \"kCBAdvDataIsConnectable\": 1\r\n    },\r\n    \"kCBMsgArgRssi\": -41,\r\n    \"kCBMsgArgDeviceUUID\": {\r\n      \"type\": \"Buffer\",\r\n      \"data\": [\r\n        120,\r\n        176,\r\n        230,\r\n        29,\r\n        235,\r\n        205,\r\n        64,\r\n        36,\r\n        164,\r\n        236,\r\n        13,\r\n        228,\r\n        189,\r\n        1,\r\n        255,\r\n        113\r\n      ]\r\n    },\r\n    \"kCBMsgArgName\": \"testje\"\r\n  }\r\n} +611ms\r\n  yosemite-bindings peripheral 78b0e61debcd4024a4ec0de4bd01ff71 discovered +0ms\r\n```\r\n\r\nI’ve tried both with and without the devices being paired using Bluetooth Settings. ANCS from the same phone to Linux works, using https://github.com/robotastic/ble-ancs.\r\n\r\nAm I missing a step? Should node-ancs still be working with this combination of OS versions?"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/comments/151738147","html_url":"https://github.com/sandeepmistry/node-ancs/issues/9#issuecomment-151738147","issue_url":"https://api.github.com/repos/sandeepmistry/node-ancs/issues/9","id":151738147,"user":{"login":"sander","id":44112,"avatar_url":"https://avatars.githubusercontent.com/u/44112?v=3","gravatar_id":"","url":"https://api.github.com/users/sander","html_url":"https://github.com/sander","followers_url":"https://api.github.com/users/sander/followers","following_url":"https://api.github.com/users/sander/following{/other_user}","gists_url":"https://api.github.com/users/sander/gists{/gist_id}","starred_url":"https://api.github.com/users/sander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sander/subscriptions","organizations_url":"https://api.github.com/users/sander/orgs","repos_url":"https://api.github.com/users/sander/repos","events_url":"https://api.github.com/users/sander/events{/privacy}","received_events_url":"https://api.github.com/users/sander/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T06:22:41Z","updated_at":"2015-10-28T06:22:41Z","body":"Thank you @sandeepmistry. I’ve asked about this on the Apple dev forums:\r\n\r\n[ANCS service on iOS 9 not discovered in OS X 10.11](https://forums.developer.apple.com/message/81207) (pending mod approval)\r\n\r\n[This post](https://forums.developer.apple.com/thread/5229) about Mac/iOS listening to iOS’s ANCS suggests that ANCS may be filtered out indeed in CoreBluetooth."}}