CBCentralManager's retrievePeripheralsWithIdentifiers always returns empty
Originator: | jan | ||
Number: | rdar://26999509 | Date Originated: | 24-Jun-2016 01:58 PM |
Status: | Open | Resolved: | NO |
Product: | IOS | Product Version: | iOS 10.0 14A5261v |
Classification: | Bluetooth | Reproducible: | Always |
Summary: In previous versions of iOS < 10, if I had a saved peripheral identifier and I called this method, I would be returned an array of peripherals that had that identifier and that were previously paired with the phone. It doesn't seem to work anymore since I installed iOS 10. Steps to Reproduce: 1. Run attached sample project. 2. Modify with proper peripheral services so that the app can connect to it. 3. Pair with peripheral. 4. Check logs output and see that retrievePeripheralsWithIdentifiers returns empty. Expected Results: retrievePeripheralsWithIdentifiers should return with the previously connected peripheral Actual Results: retrievePeripheralsWithIdentifiers returns empty Notes: I made the sample project with bare minimums to reproduce the issue. It doesn't save the identifier in memory for later retrieval, but it does check after succesfully connected to the peripheral. In my bigger app, the retrievePeripheralsWithIdentifiers returns empty no matter when I call it.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Check to make sure you are passing an array of NSUUID not CBUUID objects to retrievePeripheralsWithIdentifiers
I am seeing this as well. retrievePeripheralsWithIdentifiers returns empty in iOS 10 beta 5