I am developing iOS Application that use bluetooth. I have to connect my iPhone with windows machine bluetooth and it is working fine but sometimes i am getting manager state "Unsupported". I am using iPhone XR. I know my iPhone XR is supported and i have connected manytimes. But why sometimes i got manager state unsupported.
I am testing on real device
func centralManagerDidUpdateState(_ manager: CBCentralManager) {
if manager.state == .poweredOn { }
else if (manager.state == .unauthorized || manager.state == .unsupported){ }
}