IOBluetoothHandsFreeDevice has failed if app sand box is enabled
IOBluetoothHandsFreeDevice has failed if app sand box is enabled
- Subject: IOBluetoothHandsFreeDevice has failed if app sand box is enabled
- From: 김영태 <email@hidden>
- Date: Sun, 23 Dec 2012 17:22:12 -0800
Hi,
I'm developing the HFP emulator on MacOS 10.8 platform.
Referencing to this article, I'm able to create IOBluetoothHandsFreeDevice and it is running, fantastic, however, if app sandbox is enabled, IOBluetoothHandsFreeDevice kept being failed even though I did to follow up these scripts…
http://lists.apple.com/archives/bluetooth-dev/2012/Sep/msg00032.htmlhttp://lists.apple.com/archives/bluetooth-dev/2012/Sep/msg00037.html
==
Matt Gillette <
email@hidden>
Before creating the IOBluetoothHandsFreeDevice you need to call
IOBluetoothAddSCOAudioDevice((IOBluetoothDeviceRef)device, (CFDictionaryRef)[NSDictionary dictionaryWithObject:@YES forKey:@"Autoconfig hidden"]);
This only needs to be called once per pairing.
==
AFTER enabling SAND BOX option with "com.apple.security.device.bluetooth" is TRUE
IOBluetoothHandsFree *handsfree;
handsfree = [[IOBluetoothHandsFreeDevice alloc] initWithDevice:[rfcommChannel getDevice] delegate:self];
--> Whenever that function is invoked, this error always came out..
"Failed to create SCO audio device LG-P930 70-05-14-e3-4b-13-HandsFree"
Could someone give me a little tips why it is failed if sandbox is enabled?
Thanks
-- Young Kim
_______________________________________________
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