ConnectAccessories method in frontend iOS that gives 0 items

This may be a duplicate question, but all the previous ones have been asked over a year ago and have no useful answer.

Pair with bluetooth. connectedAccessories each time counting 0 iOS External Accessory Framework: how to get protocol string for a specific MFI device https://apple.stackexchange.com/questions/45398/is-it-possible-to-get-the-api-details-and- protocol-details-from-an-mfi-certified

I want to use an external accessory framework to connect my iOS app with mfi devices. I am running the EADemo app but it requires Supported external accessory protocols strings

. I don't know where to get this line from and what these lines are. Please help which line should I use to at least test the sample application. I currently have an iPhone, iPod, bluetooth speakers (bose) and a headset.

Please help, I am stuck here.

Thanks in advance!

Any suggestions would be much appreciated.

Edit 1: After reading the documentation for Apple https://developer.apple.com/library/content/featuredarticles/ExternalAccessoryPT/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009498-SW1

he says that trying to communicate with a particular accessory requires knowing the protocol string from the manufacturers to communicate with it. but what this line returns:

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

      

I have connected 2-3 speakers via bluetooth from my phone, so in the above line give me the information about the connected accessory, even if I have not declared any protocol lines in info.plist as apple says for communication that it is important to know the protocol, but we we can see devices in some list. I am getting 0 items.

From apple docs:

"This class contains an array of already connected accessory objects that you can enumerate to see if there is one your app supports." 

      

suggest.

can anyone please provide some example accessory name I should use to test the outer frame work (means providing the accessory as an element)

+3


source to share





All Articles