Just adding some more details here, we're creating our ASPickerDisplayitem like this:
private var pickerDisplayItem: ASPickerDisplayItem {
guard let productImage = UIImage(named: "DeviceImage") else {
fatalError("Could not load product image.")
}
let descriptor = ASDiscoveryDescriptor()
descriptor.bluetoothCompanyIdentifier = .init(BluetoothConstants.companyUUID)
let displayItem = ASPickerDisplayItem(
name: "<device name>",
productImage: productImage,
descriptor: descriptor
)
return displayItem
}
and we're showing the picker like this:
func showPicker() {
session.showPicker(for: [pickerDisplayItem]) { error in
if let error {
Logger.hardware.error("\(error)")
}
}
}
The devices we're using are mostly the personal devices of our team members, but some of them are our older devices wiped and set up as test devices.
There are no error messages in our application logs when the issue occurs. We tried the iPhone 15 that worked earlier today again and it's now back to not working. This leads me to believe it's unlikely to be an issue with our code, given that it randomly works.
The device logs contain a lot of details I'm not comfortable sharing in a public forum, but the gist is that from my understanding the phone sees the device for some reason, but doesn't display it?
Topic:
App & System Services
SubTopic:
Core OS
Tags: