iOS External accessories framework to connect iPod using bluetooth

0 votes

0

I am using EADemo from apple

https://developer.apple.com/library/content/samplecode/EADemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010079-Intro-DontLinkElementID_2

This is basically External Accessories framework demo code

My info.plist have

<key>UIBackgroundModes</key>
    <array>
        <string>audio</string>
        <string>bluetooth-central</string>
        <string>bluetooth-peripheral</string>
        <string>external-accessory</string>
        <string>fetch</string>
        <string>location</string>
        <string>newsstand-content</string>
        <string>remote-notification</string>
    </array>
    <key>UISupportedExternalAccessoryProtocols</key>
    <array>
        <string>com.apple.p1</string>
        <string>com.apple.p2</string>
    </array>

enter image description here When I run this code

_eaSessionController = [EADSessionController sharedController];
_accessoryList = [[NSMutableArray alloc] initWithArray:[[EAAccessoryManager sharedAccessoryManager] connectedAccessories]];

    if ([_accessoryList count] == 0) {
        [_noExternalAccessoriesPosterView setHidden:NO];
    } else {
        [_noExternalAccessoriesPosterView setHidden:YES];
    }

The count is always 0. I have paired a Mac Mini and an iPod with the device I am using and I believe these two are MFi complaint obviously.

What am I missing ? can anybody help please ?


 

Nov 23, 2022 in Mobile Development by gaurav
• 23,260 points
724 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Okay After a huge research I found this. First of all apple does not take an iPod connected through cable or Bluetooth as an accessory.

Next if any accessories connected through, it will show but you cant communicate with it if it is not under apple's MFi (Made for iOS) licence program and it is induced from iOS 10. Now how do you know the protocol string if the device is under MFi already. Here you need to contact the vendor or manufacturer to get the protocol string as it is sensitive data.
answered Dec 20, 2022 by gaurav
• 23,260 points

edited Mar 5

Related Questions In Mobile Development

0 votes
0 answers

How to login to a site using POST request? (Swift,iOS)

I want to create an iOS Application ...READ MORE

Nov 9, 2022 in Mobile Development by gaurav
• 23,260 points
752 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

Facebook iOS 9 SDK login redirects to mbasic.facebook.com on Safari

I'm using the iOS 9 Facebook SDK to manage ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,545 views
0 votes
0 answers

Change English Number To Persian Numbers in Text Swift,IOS

Hi How can i replace english numbers ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
535 views
0 votes
0 answers

How to receive single tap and hold Remote-Control Event with iOS

I'm looking for my app to listen ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
532 views
0 votes
0 answers

iOS External accessories framework to connect iPod using bluetooth

I am using EADemo from apple https://developer.apple.com/library/content/samplecode/EADemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010079-Intro-DontLinkElementID_2 This is ...READ MORE

Nov 30, 2022 in Mobile Development by gaurav
• 23,260 points
653 views
0 votes
1 answer

Getting country calling prefix

For a class that offers both this ...READ MORE

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
963 views
0 votes
1 answer

white screen on simulator iphone Xcode

After creating the request, you must actually ...READ MORE

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
4,148 views
0 votes
1 answer

Is there a way to to check if a picture was taken on that iPhone?

Actually, the model and manufacturer information is ...READ MORE

answered Sep 22, 2022 in IOS by Rahul
• 9,680 points
781 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP