OK, before I get a ton of responses. I know an app cannot toggle bluetooth on and talk to another bluetooth devices (exchanging data or otherwise). I was just wondering if the list of nearby bluetooth devices can be read. It seems that it’s hidden from the GKPeerPickerController. If it’s true, then does the phone have to be jailbroken? Would an app need to use private frameworks to achieve this, e.g., BluetoothManager? But, how?
Cheers
You cannot obtain a list of discovered bluetooth devices. This should be possible with private frameworks, but that’s generally a bad idea due to a few reasons:
Your app will be rejected from the AppStore
Private frameworks change quickly. Like with private methods, they can change internally or get removed alltogether, rendering your application unusable. Do you really want to engage in a cat and mouse game with Apple?
If you are really going to use Private Frameworks, you’ll need to
header-dumpit. If you don’t know how to do that, here’s a tutorial:http://tungchingkai.blogspot.com/2008/05/class-dump-for-iphone-sdk-header-file.html
Stick with GameKit for transferring data. It’s a much more reliable approach.