cbperipheral.name does not update when peripheral changes name in advertising
| Originator: | chooseTylernol | ||
| Number: | rdar://18062853 | Date Originated: | 8/19/14 |
| Status: | open | Resolved: | |
| Product: | iOS7 | Product Version: | 7.1.2 |
| Classification: | Reproducible: | yes |
Summary: if an iOS app is using the core bluetooth framework and is scanning for peripherals to connect to, both device names (mapped to peripheral.name and advertisementData[@"kCBAdvDataLocalName"] appear to stick to the first values encountered when the peripheral is scanned. If the peripheral subsequently updates its GAP and GATT device names, the original values persist. This caching seems to persist across app relaunches and device reboots. Steps to Reproduce: 1. peripheral advertises with scan RSP name "foo" 2. iOS app scans for peripheral and sees peripheral(didDiscoverPeripheral..) with name "foo" 3.peripheral stops advertising 4. peripheral starts advertising with scan RSP name "bar" 5. iOS app scans for peripheral and.. Expected Results: in step 5 I expect the name to update to "bar" Actual Results: int step 5 the name stays at "foo". Version: iOS 7.1.2 Notes: from reading around, this bug seems to have been in existence since iOS 6. I have not yet attempted with iOS8. Any chance it is addressed there? Configuration: iPhone 5
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!