connectedAccessories method of ExternalAccessory framework returns empty array after restart

Hi everyone.


I'm facing a really weird issue with the ExternalAccessory framework. I've the following instruction inside my code


NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] connectedAccessories];


to retrieve the Bluetooth accessories connected to my device. I know this framework only works with MFi certified peripherals and I have all the needed protocols declared inside the Supported External Accessory Protocols in my Info.plist file.


This is working fine, except in one case: when I restart my iOS device and launch my test app again, the

connectedAccessories
method returns zero accessories, even if the peripheral is turned on and connected (in the Bluetooth settings, the accessory appears connected and the Bluetooth icon in the status bar is active).


I'm currently facing this issue on iPhone 4S with iOS 9.1, but it is also replicable on other devices and iOS versions.

Hi!

I know that this is very old question, but did you get to resolve it? getting mad with something similar...

thansk

connectedAccessories method of ExternalAccessory framework returns empty array after restart
 
 
Q