App not receiving accessory connection notification (EAFramework)
App not receiving accessory connection notification (EAFramework)
- Subject: App not receiving accessory connection notification (EAFramework)
- From: Robert Carlsen <email@hidden>
- Date: Wed, 05 Sep 2012 10:39:10 -0400
- Acceptlanguage: en-US
- Thread-topic: App not receiving accessory connection notification (EAFramework)
I'm not sure if this is the appropriate forum for classic Bluetooth / EAFramework, but I'll reach out here and follow-up with a rdar if necessary.
We're observing an unexpected scenario when pairing a Bluetooth accessory. An app which declares an entry in the UISupportedExternalAccessoryProtocols plist key and declares the "external-accessory" UIBackgroundMode is not receiving the accessory connection notification in certain circumstances.
Specifically, we install and launch the app (after a fresh boot of the phone). The app registers itself to receive the EAAccessoryManager's local notifications. The app is put in the background and the accessory is discovered and paired with in the iOS Bluetooth preferences. When the accessory is listed as "Connected" the app does not receive the expected connection notification. Furthermore, when the app is brought back to the foreground the EAAccessoryManager's connectedAccessories property does not contain the newly paired and connected accessory (it returns an empty array).
The app *does* see the accessory in the connectedAccessories array after it has been force-quit and relaunched. Alternatively, the app will receive a connection notification (even while in the background) if the Bluetooth link with the accessory is severed and re-established.
Has anyone observed something similar? Is there a more appropriate forum for this question?
Regards,
-Robert
R/GA 350 West 39th Street New York, NY 10018
http://www.rga.com/ http://www.twitter.com/rga http://www.facebook.com/rga
The Agency for the Digital Ageā¢
This message contains information which may be confidential and privileged. Unless you are intended recipient (or authorized to receive this message for the intended recipient), you may not copy, disseminate or disclose to anyone the message or any information contained in the message. If you have received the message in error, please notify the sender by reply e-mail or forward the message to mailto:email@hidden and delete the message. Thank you very much.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden