CentralManagerDidUpdateState returns power from iOS 11-Beta 4

I am working with CoreBluetooth

and I am using CBCentralManager

delegates as well. But the problem is, when I run my code in iOS 11-Beta 4

, I get a power off status in the delete - (void)centralManagerDidUpdateState:(CBCentralManager *)central

when bluetooth is on.

When I turn off bluetooth and put it back on, it turns back on. Also, it works great in iOS 10 and 9. The peripheral works great and can be detected using the LightBlue app in iOS 11-Beta 4. I'm not sure why this is happening.

+3


source to share


1 answer


Looks like a bug, check the bug report here:

https://bugreport.apple.com/web/?problemID=33728133

It is also stated that:

iOS 11 will generally be less forgiving for apps that don't have the correct CB object reference, even if the issue described here becomes less severe. So, it is best to manage object lifecycles appropriately.



Also, it is recommended to update and test with beta 5.

Read more here:

iOS 11 - CoreBluetooth corrupted with correct state save and peripheral

+1


source







All Articles